[vlc-commits] avi: Explicitely initialize i_track/track as a vlc tab

Hugo Beauzée-Luyssen git at videolan.org
Wed Nov 22 15:08:23 CET 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Nov 22 14:59:25 2017 +0100| [afc2a325f035544db7c84fc374c573fdc1316356] | committer: Hugo Beauzée-Luyssen

avi: Explicitely initialize i_track/track as a vlc tab

This might help coverity understand CID #1062545 better

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

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

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 4193e38bf2..3be29f7c7b 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -330,8 +330,8 @@ static int Open( vlc_object_t * p_this )
     if( unlikely(!p_sys) )
         return VLC_EGENERIC;
     p_sys->b_odml   = false;
-    p_sys->track    = NULL;
     p_sys->meta     = NULL;
+    TAB_INIT(p_sys->i_track, p_sys->track);
     TAB_INIT(p_sys->i_attachment, p_sys->attachment);
 
     vlc_stream_Control( p_demux->s, STREAM_CAN_FASTSEEK,



More information about the vlc-commits mailing list