vlc | branch: master | Hugo Beauzée-Luyssen <h...@beauzee.fr> | Thu Sep 15 
14:33:31 2016 +0200| [d77f2cc872974529a67fa6864e78ad4de993776c] | committer: 
Hugo Beauzée-Luyssen

ttml demux: Fix use of potentially uninitialized variable

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

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

diff --git a/modules/demux/ttml.c b/modules/demux/ttml.c
index 443f560..4b6eeed 100644
--- a/modules/demux/ttml.c
+++ b/modules/demux/ttml.c
@@ -414,13 +414,13 @@ static int ParseTimeOnSpan( demux_sys_t* p_sys, char* 
psz_text )
     if( unlikely( pp_subtitles == NULL ) )
         return VLC_ENOMEM;
 
+    int ret = VLC_ENOMEM;
     vlc_array_t* p_times = vlc_array_new();
     if( unlikely( p_times == NULL ) )
         goto error;
 
     const char* psz_node_name;
     int i_nb_span = 0;
-    int ret = VLC_ENOMEM;
 
     /*
     * This loop will parse the current p tag and the

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to