diff options
author | Ryuan Choi <ryuan.choi@gmail.com> | 2014-01-10 21:05:00 +0900 |
---|---|---|
committer | Ryuan Choi <ryuan.choi@gmail.com> | 2014-01-13 17:34:36 +0900 |
commit | 2ab2d561d4a5e4ad129fce7da3c519d5d2dec877 (patch) | |
tree | 48032d998562fe89e2ae97cc9746edf5b224c249 | |
parent | 3dd195f4b28a1d621c4d3bf90b8f5ef2e487c473 (diff) | |
download | elementary-2ab2d561d4a5e4ad129fce7da3c519d5d2dec877.tar.gz |
genlist: Check return value out of the loop in _realized_items_get
-rw-r--r-- | src/lib/elm_genlist.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index f7d9788aa..b6d0be36d 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -5952,7 +5952,9 @@ _realized_items_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list) Eina_List **ret = va_arg(*list, Eina_List **); Elm_Genlist_Smart_Data *sd = _pd; - if (ret) *ret = NULL; + if (!ret) return; + + *ret = NULL; EINA_INLIST_FOREACH(sd->blocks, itb) { @@ -5964,7 +5966,7 @@ _realized_items_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list) done = EINA_TRUE; EINA_LIST_FOREACH(itb->items, l, it) { - if (it->realized && ret) *ret = eina_list_append(*ret, it); + if (it->realized) *ret = eina_list_append(*ret, it); } } else |