[vlc-commits] alsa: fix potentially uninitialized value

Rémi Denis-Courmont git at videolan.org
Wed Oct 21 18:45:23 CEST 2015


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Aug 21 19:46:09 2015 +0300| [1f3c422a7f71e23bafc28c61ddade9ce1f52e197] | committer: Jean-Baptiste Kempf

alsa: fix potentially uninitialized value

(cherry picked from commit 81a081661a25bddbc74161a4fbcc87cf2aaaaeef)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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