From 85aaa363ab500cd5b7b9a064695fc4ccad279594 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 13 Aug 2014 10:34:55 -0400 Subject: [PATCH] Revert "ecore-wayland: Calloc Can fail, so check that it works (or return if" This reverts commit a49835a8d165fa5844a902eec035c63036369632. --- src/lib/ecore_wayland/ecore_wl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_wayland/ecore_wl.c b/src/lib/ecore_wayland/ecore_wl.c index ae0d337c88..10e4295b73 100644 --- a/src/lib/ecore_wayland/ecore_wl.c +++ b/src/lib/ecore_wayland/ecore_wl.c @@ -595,7 +595,7 @@ _ecore_wl_cb_handle_global(void *data, struct wl_registry *registry, unsigned in ewd = data; - if (!(global = calloc(1, sizeof(Ecore_Wl_Global)))) return; + global = calloc(1, sizeof(Ecore_Wl_Global)); global->id = id; global->interface = strdup(interface);