[vlc-commits] alsa: fix potentially uninitialized value

Rémi Denis-Courmont git at videolan.org
Fri Aug 21 19:14:25 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Aug 21 19:46:09 2015 +0300| [81a081661a25bddbc74161a4fbcc87cf2aaaaeef] | committer: Rémi Denis-Courmont

alsa: fix potentially uninitialized value

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

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

diff --git a/modules/audio_output/alsa.c b/modules/audio_output/alsa.c
index 229d1881..7e71d3e 100644
--- a/modules/audio_output/alsa.c
+++ b/modules/audio_output/alsa.c
@@ -330,7 +330,7 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt)
     char sep = '\0';
     if (spdif)
     {
-        const char *opt;
+        const char *opt = NULL;
 
         if (!strcmp (device, "default"))
             device = "iec958"; /* TODO: hdmi */



More information about the vlc-commits mailing list