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 <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-06-07 13:33:17 -04:00
parent 0d3fb8c2a5
commit faf6041ca7
1 changed files with 1 additions and 1 deletions

View File

@ -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;