devilhorns pushed a commit to branch master.

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

commit fb4ad043f642e7e1ea6db637750bfe5e11891b77
Author: Chris Michael <[email protected]>
Date:   Wed Oct 29 12:02:26 2014 -0400

    evas-gl-x11: Fix copy/paste error from Coverity fix
    
    Summary: In fixing a Coverity issue, I copy/pasted a call to
    evas_gl_common_error_set without compiling :( Bad me !! This commit
    fixes the issue (data was undefined). Since evas_gl_common_error_set can
    take NULL as the data parameter, lets use that.
    
    @fix
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/modules/evas/engines/gl_x11/evas_x_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/gl_x11/evas_x_main.c 
b/src/modules/evas/engines/gl_x11/evas_x_main.c
index 9596b6a..0e9fce8 100644
--- a/src/modules/evas/engines/gl_x11/evas_x_main.c
+++ b/src/modules/evas/engines/gl_x11/evas_x_main.c
@@ -478,7 +478,7 @@ eng_window_free(Outbuf *gw)
    if (!__glXMakeContextCurrent(gw->disp, 0, gw->context))
      {
         ERR("glXMakeContextCurrent() failed!");
-        glsym_evas_gl_common_error_set(data, EVAS_GL_BAD_DISPLAY);
+        glsym_evas_gl_common_error_set(NULL, EVAS_GL_BAD_DISPLAY);
      }
    glXDestroyWindow(gw->disp, gw->glxwin);
    if (ref == 0)

-- 


Reply via email to