prevent null pointer 81/142681/1 accepted/tizen/4.0/unified/20170828.221932 accepted/tizen/unified/20170808.171635 submit/tizen/20170808.070659 submit/tizen_4.0/20170828.100008 tizen_4.0.IoT.p1_release tizen_4.0.m2_release
authorYoungHun Cho <hoon.cho@samsung.com>
Mon, 7 Aug 2017 04:25:56 +0000 (13:25 +0900)
committerYoungHun Cho <hoon.cho@samsung.com>
Mon, 7 Aug 2017 04:25:56 +0000 (13:25 +0900)
Change-Id: I931bc371f5a392424344046ddddf748615fec881

src/util.c

index 9b976be..c969d7b 100644 (file)
@@ -103,6 +103,7 @@ void util_bg_color_rgba_set(Evas_Object *layout, char r, char g, char b, char a)
        ret_if(!layout);
 
        msg = malloc(sizeof(*msg) + 3 * sizeof(int));
+       ret_if(!msg);
 
        msg->count = 4;
        msg->val[0] = r;