forked from enlightenment/efl
ecore-wayland: Calloc Can fail, so check that it works (or return if
not). @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
ff29972703
commit
a49835a8d1
|
@ -595,7 +595,7 @@ _ecore_wl_cb_handle_global(void *data, struct wl_registry *registry, unsigned in
|
|||
|
||||
ewd = data;
|
||||
|
||||
global = calloc(1, sizeof(Ecore_Wl_Global));
|
||||
if (!(global = calloc(1, sizeof(Ecore_Wl_Global)))) return;
|
||||
|
||||
global->id = id;
|
||||
global->interface = strdup(interface);
|
||||
|
|
Loading…
Reference in New Issue