cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=445f56741cded4125cabf7a0e015969cbf8586b2
commit 445f56741cded4125cabf7a0e015969cbf8586b2 Author: Srivardhan Hebbar <sri.heb...@samsung.com> Date: Mon Nov 9 16:07:59 2015 -0800 evas: preventing possible NULL dereference in evas xcb backend. Summary: Signed-off-by: Srivardhan Hebbar <sri.heb...@samsung.com> Reviewers: cedric Differential Revision: https://phab.enlightenment.org/D3271 Signed-off-by: Cedric BAIL <ced...@osg.samsung.com> --- 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 --