elm_list.c: check null as well.

This fixes coverity CID 1049944 Dereference after null check (FORWARD_NULL).
This commit is contained in:
Daniel Juyung Seo 2013-08-11 17:11:03 +09:00
parent 1707641142
commit cafca533a4
1 changed files with 1 additions and 1 deletions

View File

@ -1349,7 +1349,7 @@ _item_content_set_hook(Elm_Object_Item *it,
if (VIEW(item))
{
if (!strcmp(part, "start"))
if ((!part) || !strcmp(part, "start"))
edje_object_part_swallow(VIEW(item), "elm.swallow.icon", content);
else
edje_object_part_swallow(VIEW(item), "elm.swallow.end", content);