From 5cd76f8c8d8f98a47ffe8afd2b835428e2356325 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sat, 22 Oct 2011 06:30:14 +0000 Subject: [PATCH] check for value before strcmp SVN revision: 64291 --- src/lib/elm_gengrid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index b189b5d..55ab4fe 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -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; -- 2.7.4