From 565adb6f0070cb5e604edefd2a59d5da3d88f83f Mon Sep 17 00:00:00 2001 From: seoz Date: Thu, 10 Mar 2011 07:30:02 +0000 Subject: [PATCH] Elementary elm_list.c: Check null before use it. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@57656 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index c7bd9b9..34e0189 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -1050,6 +1050,7 @@ static void _fix_items(Evas_Object *obj) { Widget_Data *wd = elm_widget_data_get(obj); + if (!wd) return; const Eina_List *l; Elm_List_Item *it; Evas_Coord minw[2] = { 0, 0 }, minh[2] = { 0, 0 }; @@ -1061,7 +1062,6 @@ _fix_items(Evas_Object *obj) const char *it_compress = wd->h_mode ? "h_item_compress" : "item_compress"; const char *it_compress_odd = wd->h_mode ? "h_item_compress_odd" : "item_compress_odd"; - if (!wd) return; if (wd->walking) { wd->fix_pending = EINA_TRUE; -- 2.7.4