raster pushed a commit to branch master.

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

commit cd208fbeef8fc45b282fde7c65b3d90123e32f9b
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Dec 11 18:22:59 2013 +0900

    emotion - test - exit if calloc fails
    
    spotted this while looking at coverty issue. likely analysis tools
    will complain.
---
 src/tests/emotion/emotion_test_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/tests/emotion/emotion_test_main.c 
b/src/tests/emotion/emotion_test_main.c
index 7fe801e..1a9cb24 100644
--- a/src/tests/emotion/emotion_test_main.c
+++ b/src/tests/emotion/emotion_test_main.c
@@ -623,7 +623,8 @@ init_video_object(const char *module_filename, const char 
*filename)
    w = iw; h = ih;
 
    fd = calloc(1, sizeof(Frame_Data));
-
+   if (!fd) exit(1);
+   
    oe = edje_object_add(evas);
    evas_object_event_callback_add(oe, EVAS_CALLBACK_FREE, _oe_free_cb, NULL);
    evas_object_data_set(oe, "frame_data", fd);

-- 


Reply via email to