raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f3fdcf56923c8a2ca126e14d915e6386c7c4ff7e

commit f3fdcf56923c8a2ca126e14d915e6386c7c4ff7e
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sat Sep 19 20:38:12 2020 +0100

    elm - collection view - check return and fix coverity wanring
    
    fix CID 1405808
---
 src/lib/elementary/efl_ui_collection_view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_collection_view.c 
b/src/lib/elementary/efl_ui_collection_view.c
index 7eb6fe42d1..1a7f0079e0 100644
--- a/src/lib/elementary/efl_ui_collection_view.c
+++ b/src/lib/elementary/efl_ui_collection_view.c
@@ -1013,7 +1013,7 @@ _batch_size_cb(void *data, 
Efl_Ui_Position_Manager_Size_Call_Config conf, Eina_R
    sizes = memory.mem;
    //count = efl_model_children_count_get(parent);
    limit = conf.range.end_id - conf.range.start_id;
-   ITEM_BASE_SIZE_FROM_MODEL(parent, item_base);
+   if (!ITEM_BASE_SIZE_FROM_MODEL(parent, item_base)) return result;
 
    // Look in the temporary cache now for the beginning of the buffer
 #ifdef VIEWPORT_ENABLE

-- 


Reply via email to