Fix Dereference after null check
authorJaehwan Kim <jae.hwan.kim.neo@gmail.com>
Wed, 9 Jan 2013 11:30:10 +0000 (11:30 +0000)
committerJaehwan Kim <jae.hwan.kim.neo@gmail.com>
Wed, 9 Jan 2013 11:30:10 +0000 (11:30 +0000)
SVN revision: 82453

legacy/elementary/src/lib/elm_segment_control.c

index 879309c..67c88ad 100644 (file)
@@ -475,7 +475,7 @@ _item_content_get_hook(const Elm_Object_Item *it,
    Elm_Segment_Item *item;
    item = (Elm_Segment_Item *)it;
 
-   if (!part && !strcmp(part, "icon"))
+   if (part && !strcmp(part, "icon"))
      return item->icon;
    else
      return edje_object_part_swallow_get(VIEW(item), part);