[vlc-commits] fix use of uninitialized variable on error

Ludovic Fauvet git at videolan.org
Fri Aug 31 08:18:08 CEST 2012


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Fri Aug 31 02:37:15 2012 +0200| [2ee43275e3dfe528f9bc41f8520ba218487d0588] | committer: Rémi Denis-Courmont

fix use of uninitialized variable on error

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 src/input/input.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/input.c b/src/input/input.c
index aabb3d6..afc01ad 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2345,7 +2345,7 @@ static int InputSourceInit( input_thread_t *p_input,
                             input_source_t *in, const char *psz_mrl,
                             const char *psz_forced_demux, bool b_in_can_fail )
 {
-    const char *psz_access, *psz_demux, *psz_path, *psz_anchor;
+    const char *psz_access, *psz_demux, *psz_path, *psz_anchor = NULL;
     char *psz_var_demux = NULL;
     double f_fps;
 



More information about the vlc-commits mailing list