Diskselector segfault issue fix.
authorsanjeev <sanjeev@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 17 Apr 2012 05:29:34 +0000 (05:29 +0000)
committersanjeev <sanjeev@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 17 Apr 2012 05:29:34 +0000 (05:29 +0000)
Author : cnook <kimcinoo@gmail.com>

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@70253 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_diskselector.c

index b117e7b..c241011 100644 (file)
@@ -645,10 +645,12 @@ _selected_item_indicate(Elm_Diskselector_Item *it)
    wd = elm_widget_data_get(WIDGET(it));
 
    if (!wd) return;
+   if (!it->label) return;
 
    EINA_LIST_FOREACH(wd->r_items, l, item)
      {
-        if (!strcmp(item->label, it->label)) edje_object_signal_emit(VIEW(item), "elm,state,selected", "elm");
+        if (item->label && !strcmp(item->label, it->label))
+           edje_object_signal_emit(VIEW(item), "elm,state,selected", "elm");
         else
            edje_object_signal_emit(VIEW(item), "elm,state,default", "elm");
      }