[vlc-devel] [PATCH] demux: avi: initialize bool

Shaleen Jain shaleen.jain95 at gmail.com
Mon Jul 24 08:49:33 CEST 2017


Undefined behaviour
---
 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 c0f47ac1a8..586e27eaa6 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -1003,7 +1003,7 @@ static int Demux_Seekable( demux_t *p_demux )
     for( i_track = 0; i_track < p_sys->i_track; i_track++ )
     {
         avi_track_t *tk = p_sys->track[i_track];
-        bool  b;
+        bool  b = false;
 
         es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE, tk->p_es, &b );
         if( tk->p_es_dv_audio )
-- 
2.13.3



More information about the vlc-devel mailing list