forked from enlightenment/efl
evas: preventing possible NULL dereference in evas xcb backend.
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>
This commit is contained in:
parent
e5a9c7844f
commit
445f56741c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue