check for value before strcmp

SVN revision: 64291
This commit is contained in:
Mike Blumenkrantz 2011-10-22 06:30:14 +00:00
parent 5ea99dc87f
commit 9a12b8f12b
1 changed files with 1 additions and 1 deletions

View File

@ -1853,7 +1853,7 @@ _item_new(Widget_Data *wd,
if (!it) return NULL;
it->item = ELM_NEW(Elm_Gen_Item_Type);
wd->count++;
it->group = !strcmp(it->itc->item_style, "group_index");
it->group = it->itc->item_style && (!strcmp(it->itc->item_style, "group_index"));
ELM_GEN_ITEM_SETUP(it);
return it;