From 61717b6c2987aab54b48d8395ba81074182c9a69 Mon Sep 17 00:00:00 2001 From: InHong Han Date: Wed, 9 Nov 2016 15:54:09 +0900 Subject: [PATCH] Fix issue detected by static analysis tool Change-Id: I00f0823e41e39796d2d0ef241ba7af8e1c8e405a --- src/eflutil.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/eflutil.cpp b/src/eflutil.cpp index 69edf6f..cad7ba8 100644 --- a/src/eflutil.cpp +++ b/src/eflutil.cpp @@ -72,6 +72,10 @@ void add_scrollable_title_area(Evas_Object *genlist, const char *title, Eina_Boo /* Add scrollable title area in wearable profile */ Elm_Object_Item *it; Elm_Genlist_Item_Class *ttc = elm_genlist_item_class_new(); + + if (!ttc) + return; + ttc->item_style = "title"; ttc->func.text_get = title ? _title_text_get : NULL; it = elm_genlist_item_append(genlist, ttc, title, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); @@ -80,5 +84,4 @@ void add_scrollable_title_area(Evas_Object *genlist, const char *title, Eina_Boo if (autoscroll) evas_object_smart_callback_add(genlist, "realized", gl_realized_cb, NULL); -} - +} \ No newline at end of file -- 2.7.4