seoz pushed a commit to branch master.
commit a1be463643c326b1aeccd909dda2257a693bd0a6
Author: Daniel Juyung Seo <[email protected]>
Date: Sun Aug 11 17:11:03 2013 +0900
elm_list.c: check null as well.
This fixes coverity CID 1049944 Dereference after null check (FORWARD_NULL).
---
src/lib/elm_list.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index 11d48a0..aeb410c 100644
--- a/src/lib/elm_list.c
+++ b/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);
--
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk