[vlc-devel] [PATCH] fix use of uninitialized variable on error

Ludovic Fauvet etix at videolan.org
Fri Aug 31 02:37:15 CEST 2012


---
 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;
 
-- 
1.7.12




More information about the vlc-devel mailing list