[vlc-devel] [PATCH] demux: avi: initialize bool
Thomas Guillem
thomas at gllm.fr
Mon Jul 24 09:15:58 CEST 2017
On Mon, Jul 24, 2017, at 08:49, Shaleen Jain wrote:
> 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 )
Ok, but I think you should do the same for bool b_extra few lines after.
> --
> 2.13.3
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list