devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a49835a8d165fa5844a902eec035c63036369632

commit a49835a8d165fa5844a902eec035c63036369632
Author: Chris Michael <[email protected]>
Date:   Wed Aug 13 08:58:39 2014 -0400

    ecore-wayland: Calloc Can fail, so check that it works (or return if
    not).
    
    @fix
    
    Signed-off-by: Chris Michael <[email protected]>
---
 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 10e4295..ae0d337 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;
 
-   global = calloc(1, sizeof(Ecore_Wl_Global));
+   if (!(global = calloc(1, sizeof(Ecore_Wl_Global)))) return;
 
    global->id = id;
    global->interface = strdup(interface);

-- 


Reply via email to