hermet pushed a commit to branch master.

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

commit ff7511ae123bbaaefcd716edc2aabf57a9139da8
Author: Hermet Park <her...@hermet.pe.kr>
Date:   Wed Sep 21 13:16:36 2016 +0900

    evas engine: correct null check
    
    check null first, before access it.
---
 src/modules/evas/engines/gl_generic/evas_engine.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c 
b/src/modules/evas/engines/gl_generic/evas_engine.c
index 5d0d465..5c5417f 100644
--- a/src/modules/evas/engines/gl_generic/evas_engine.c
+++ b/src/modules/evas/engines/gl_generic/evas_engine.c
@@ -1724,8 +1724,9 @@ eng_gl_surface_direct_renderable_get(void *data, 
Evas_Native_Surface *ns, Eina_B
    Evas_Engine_GL_Context *gl_context;
    Evas_GL_Image *sfc = surface;
 
+   if (!re) return EINA_FALSE;
    EVGLINIT(data, EINA_FALSE);
-   if (!re || !ns) return EINA_FALSE;
+   if (!ns) return EINA_FALSE;
    if (!evgl_native_surface_direct_opts_get(ns, &direct_render, 
&client_side_rotation, override))
      return EINA_FALSE;
 

-- 


Reply via email to