From cafca533a4919aa89dd5682d1c0bdfcdc238592d Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Sun, 11 Aug 2013 17:11:03 +0900 Subject: [PATCH] elm_list.c: check null as well. This fixes coverity CID 1049944 Dereference after null check (FORWARD_NULL). --- legacy/elementary/src/lib/elm_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_list.c b/legacy/elementary/src/lib/elm_list.c index 11d48a0a0d..aeb410cfaf 100644 --- a/legacy/elementary/src/lib/elm_list.c +++ b/legacy/elementary/src/lib/elm_list.c @@ -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);