Return value of a function 'elm_object_part_text_get' is dereferenced at option.cpp:282 without checking, but it is usually checked for this function
Change-Id: I0ec42e1139346370e8e12d0a3b7d298936d46b4f
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
_accessible_body_name_cb(void *data, Evas_Object *obj)
{
Evas_Object *layout = (Evas_Object *)data;
- return strdup(elm_object_part_text_get(layout, "elm.text"));
+ const char *text = elm_object_part_text_get(layout, "elm.text");
+ return text ? strdup(text) : NULL;
}
static void