edje lua - fix useless double check of list return and pointless cast

fixes CID 1039467
This commit is contained in:
Carsten Haitzler 2014-08-27 12:02:58 +09:00
parent 5b5ee4857a
commit 7a8f416bb6
1 changed files with 1 additions and 1 deletions

View File

@ -2026,7 +2026,7 @@ _elua_top(lua_State *L) // Stack usage [
Evas_Object *o;
Eina_List *list, *l;
if (!_elua_isa(obj, _elua_evas_meta)) return 0;
if (!(list = (Eina_List *)evas_object_smart_members_get(obj->ed->obj))) return 0;
list = evas_object_smart_members_get(obj->ed->obj);
if (!list) return 0;
for (l = eina_list_last(list); l; l = l->prev)
{