devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2aa9538f73a03db55853df4936a2bda6a6aa6624

commit 2aa9538f73a03db55853df4936a2bda6a6aa6624
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Jun 7 13:34:52 2017 -0400

    evas-gl-drm: Fix uninitialized variable
    
    Small patch to fix an uninitialized variable when using
    eglGetConfigAttrib()
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/modules/evas/engines/gl_drm/evas_outbuf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c 
b/src/modules/evas/engines/gl_drm/evas_outbuf.c
index 4a1144cf9a..c69a6567e9 100644
--- a/src/modules/evas/engines/gl_drm/evas_outbuf.c
+++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c
@@ -268,7 +268,7 @@ _evas_outbuf_egl_setup(Outbuf *ob)
 
    for (; i < ncfg; ++i)
      {
-        EGLint format;
+        EGLint format = 0;
 
         if (!eglGetConfigAttrib(ob->egl.disp, cfgs[i], EGL_NATIVE_VISUAL_ID,
                                 &format))

-- 


Reply via email to