From 445f56741cded4125cabf7a0e015969cbf8586b2 Mon Sep 17 00:00:00 2001 From: Srivardhan Hebbar Date: Mon, 9 Nov 2015 16:07:59 -0800 Subject: [PATCH] evas: preventing possible NULL dereference in evas xcb backend. Summary: Signed-off-by: Srivardhan Hebbar Reviewers: cedric Differential Revision: https://phab.enlightenment.org/D3271 Signed-off-by: Cedric BAIL --- src/modules/evas/engines/software_x11/evas_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/evas/engines/software_x11/evas_engine.c b/src/modules/evas/engines/software_x11/evas_engine.c index 5a5d1cf..e97f0f5 100644 --- a/src/modules/evas/engines/software_x11/evas_engine.c +++ b/src/modules/evas/engines/software_x11/evas_engine.c @@ -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 -- 2.7.4