From: Fabian Keil Date: Thu, 2 Jul 2009 18:48:27 +0000 (+0200) Subject: In InitGLX13(), make sure fbconf has a defined value. Otherwise the for loop may... X-Git-Tag: 1.1.0-ff~5140 X-Git-Url: http://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=commitdiff_plain;h=857fbdbcd2cd1222a686e0f35678ab0ba1606c08;ds=sidebyside In InitGLX13(), make sure fbconf has a defined value. Otherwise the for loop may be left too early. Signed-off-by: Rémi Duraffort --- diff --git a/modules/video_output/x11/glx.c b/modules/video_output/x11/glx.c index eb51ba6cc7..14ac5ed03f 100644 --- a/modules/video_output/x11/glx.c +++ b/modules/video_output/x11/glx.c @@ -234,7 +234,7 @@ int InitGLX13( vout_thread_t *p_vout ) { vout_sys_t *p_sys = p_vout->p_sys; int i_nb, ret = VLC_EGENERIC; - GLXFBConfig *p_fbconfs = NULL, fbconf; + GLXFBConfig *p_fbconfs = NULL, fbconf = NULL; XWindowAttributes att; static const int p_attr[] = { GLX_RED_SIZE, 5, GLX_GREEN_SIZE, 5, GLX_BLUE_SIZE, 5,