forked from enlightenment/efl
elm_list.c: check null as well.
This fixes coverity CID 1049944 Dereference after null check (FORWARD_NULL).
This commit is contained in:
parent
1707641142
commit
cafca533a4
|
@ -1349,7 +1349,7 @@ _item_content_set_hook(Elm_Object_Item *it,
|
||||||
|
|
||||||
if (VIEW(item))
|
if (VIEW(item))
|
||||||
{
|
{
|
||||||
if (!strcmp(part, "start"))
|
if ((!part) || !strcmp(part, "start"))
|
||||||
edje_object_part_swallow(VIEW(item), "elm.swallow.icon", content);
|
edje_object_part_swallow(VIEW(item), "elm.swallow.icon", content);
|
||||||
else
|
else
|
||||||
edje_object_part_swallow(VIEW(item), "elm.swallow.end", content);
|
edje_object_part_swallow(VIEW(item), "elm.swallow.end", content);
|
||||||
|
|
Loading…
Reference in New Issue