evas: preventing possible NULL dereference in evas xcb backend.
authorSrivardhan Hebbar <sri.hebbar@samsung.com>
Tue, 10 Nov 2015 00:07:59 +0000 (16:07 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 10 Nov 2015 00:08:01 +0000 (16:08 -0800)
Summary: Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: cedric

Differential Revision: https://phab.enlightenment.org/D3271

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/modules/evas/engines/software_x11/evas_engine.c

index 5a5d1cf..e97f0f5 100644 (file)
@@ -374,7 +374,7 @@ _best_colormap_get(int backend, void *connection, int screen)
                break;
             }
 
-        return s->default_colormap;
+        if (s) return s->default_colormap;
      }
 #endif