aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-04-18 16:58:04 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-04-18 17:30:50 +0900
commit706c7f9e3b1080aedd62de6fdf2c708f56eded8d (patch)
tree3bd7da88059940cbe968e6caf670b801acfddc00
parenteina log - try and fix coverity complaint about integer overflow again (diff)
downloadefl-706c7f9e3b1080aedd62de6fdf2c708f56eded8d.tar.gz
genlist - fix coverity complaint about null check
we checked for null and then just used a null return later inthe loop. this fixes that. this should fix CID 1360955
-rw-r--r--src/lib/elementary/elm_genlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 360bbcbad2..b657e57119 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -7745,8 +7745,9 @@ _filter_queue_process(Elm_Genlist_Data *sd)
for (n = 0; ((sd->filter_queue) && (sd->processed_count < ITEM_QUEUE_MAX)); n++)
{
it = eina_list_data_get(sd->filter_queue);
+ if (!it) break;
//FIXME: This is added as a fail safe code for items not yet processed.
- if (it && it->item->queued)
+ if (it->item->queued)
{
sd->filter_queue = eina_list_remove_list
(sd->filter_queue, sd->filter_queue);