From: Chris Michael Date: Wed, 7 Jun 2017 17:33:17 +0000 (-0400) Subject: evas-gl-drm: Be sure to initialize ncfg variable X-Git-Tag: upstream/1.20.0~717 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=faf6041ca79d795d96b5d7ea00aa18aafff96fe8;p=platform%2Fupstream%2Fefl.git evas-gl-drm: Be sure to initialize ncfg variable This could lead to an uninitialized variable or use of ncfg variable without a value. @fix Signed-off-by: Chris Michael --- diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c b/src/modules/evas/engines/gl_drm/evas_outbuf.c index 4606c08..4a1144c 100644 --- a/src/modules/evas/engines/gl_drm/evas_outbuf.c +++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c @@ -187,7 +187,7 @@ _evas_outbuf_egl_setup(Outbuf *ob) int ctx_attr[3]; int cfg_attr[40]; int maj = 0, min = 0, n = 0, i = 0; - EGLint ncfg; + EGLint ncfg = 0; EGLConfig *cfgs; const GLubyte *vendor, *renderer, *version, *glslversion; Eina_Bool blacklist = EINA_FALSE;