[vlc-commits] cdda: potentially missing initializer

Rémi Denis-Courmont git at videolan.org
Fri Dec 30 12:17:35 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Dec 30 13:16:59 2016 +0200| [a731c32de358541ee043806af5d053414f6f26ca] | committer: Rémi Denis-Courmont

cdda: potentially missing initializer

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a731c32de358541ee043806af5d053414f6f26ca
---

 modules/access/cdda.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/cdda.c b/modules/access/cdda.c
index a95b75b..84544dc 100644
--- a/modules/access/cdda.c
+++ b/modules/access/cdda.c
@@ -209,7 +209,7 @@ static int DemuxOpen(vlc_object_t *obj)
     /* Track number in input item */
     if (sys->start == (unsigned)-1 || sys->length == (unsigned)-1)
     {
-        int *sectors; /* Track sectors */
+        int *sectors = NULL; /* Track sectors */
         unsigned titles = ioctl_GetTracksMap(obj, sys->vcddev, &sectors);
 
         if (track > titles)



More information about the vlc-commits mailing list