evas-gl-drm: Be sure to initialize ncfg variable
authorChris Michael <cp.michael@samsung.com>
Wed, 7 Jun 2017 17:33:17 +0000 (13:33 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 8 Jun 2017 14:01:52 +0000 (10:01 -0400)
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>
src/modules/evas/engines/gl_drm/evas_outbuf.c

index 4606c08..4a1144c 100644 (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;