summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-10-22 06:30:14 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-10-22 06:30:14 +0000
commit9a12b8f12b95f021ddafc22fb824dbee8b52addb (patch)
tree70ac36bb94cc29dd553cf1c3a5ecb90d0e73d908 /legacy
parent5ea99dc87f0b16d0b387db978b015e082b4f11b9 (diff)
check for value before strcmp
SVN revision: 64291
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/lib/elm_gengrid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/elementary/src/lib/elm_gengrid.c b/legacy/elementary/src/lib/elm_gengrid.c
index b189b5d9d5..55ab4fe5a5 100644
--- a/legacy/elementary/src/lib/elm_gengrid.c
+++ b/legacy/elementary/src/lib/elm_gengrid.c
@@ -1853,7 +1853,7 @@ _item_new(Widget_Data *wd,
1853 if (!it) return NULL; 1853 if (!it) return NULL;
1854 it->item = ELM_NEW(Elm_Gen_Item_Type); 1854 it->item = ELM_NEW(Elm_Gen_Item_Type);
1855 wd->count++; 1855 wd->count++;
1856 it->group = !strcmp(it->itc->item_style, "group_index"); 1856 it->group = it->itc->item_style && (!strcmp(it->itc->item_style, "group_index"));
1857 ELM_GEN_ITEM_SETUP(it); 1857 ELM_GEN_ITEM_SETUP(it);
1858 1858
1859 return it; 1859 return it;