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
This commit is contained in:
Carsten Haitzler 2017-04-18 16:58:04 +09:00
parent 330368c10c
commit 706c7f9e3b
1 changed files with 2 additions and 1 deletions

View File

@ -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);