[vlc-devel] [PATCH 2/2] core display: Fix usage of uninitialized variable

Rémi Denis-Courmont remi at remlab.net
Tue Aug 8 14:14:02 CEST 2017


Le 8 août 2017 12:20:39 GMT+03:00, Jean-Baptiste Kempf <jb at videolan.org> a écrit :
>---
> src/video_output/display.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/src/video_output/display.c b/src/video_output/display.c
>index 778942be4e..01dd0a4630 100644
>--- a/src/video_output/display.c
>+++ b/src/video_output/display.c
>@@ -442,7 +442,7 @@ static int VoutDisplayCreateRender(vout_display_t
>*vd)
>     es_format_InitFromVideo(&src, &v_src);
> 
>     /* */
>-    int ret;
>+    int ret = VLC_EGENERIC;
> 
> for (int i = 0; i < 1 + (v_dst_cmp.i_chroma != v_dst.i_chroma); i++) {
>         es_format_t dst;
>-- 
>2.13.3
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

I don't see how that variable can be used uninitialized here... ?
-- 
Rémi Denis-Courmont
Typed on an inconvenient virtual keyboard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170808/2a59b2d1/attachment.html>


More information about the vlc-devel mailing list