raster pushed a commit to branch master.

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

commit 838a67d311fcbdfbc8f68f7be29c6864751a606a
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Fri Apr 17 12:47:34 2020 +0100

    elm - genlist test - handl g_data being null
    
    fix CID 1396944 1396946
---
 src/bin/elementary/test_genlist.c | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/src/bin/elementary/test_genlist.c 
b/src/bin/elementary/test_genlist.c
index 749d04fe63..bf6ba4c9d9 100644
--- a/src/bin/elementary/test_genlist.c
+++ b/src/bin/elementary/test_genlist.c
@@ -5528,20 +5528,21 @@ test_genlist_show_item(void *data,
    api->itc1->func.state_get = NULL;
    api->itc1->func.del = NULL;
 
-   g_data->gl = gl;
-   g_data->itc1 = api->itc1;
-
-   max = g_data->max_items;
-   for (i = 0; i <= max; i++)
-       elm_genlist_item_append(gl, api->itc1, (void*)(uintptr_t)i, NULL, 
ELM_GENLIST_ITEM_NONE, NULL, NULL);
-
    if (g_data)
-     gli = elm_genlist_nth_item_get(gl, g_data->show_item);
-   if (!gli) gli = elm_genlist_last_item_get(gl);
-   elm_genlist_item_show(gli, g_data->type);
-
-   //prepends item while queue processing is happening
-   ecore_timer_add(0.1, _late_item_prepender, g_data);
+     {
+        g_data->gl = gl;
+        g_data->itc1 = api->itc1;
+
+        max = g_data->max_items;
+        for (i = 0; i <= max; i++)
+          elm_genlist_item_append(gl, api->itc1, (void*)(uintptr_t)i, NULL, 
ELM_GENLIST_ITEM_NONE, NULL, NULL);
+
+        gli = elm_genlist_nth_item_get(gl, g_data->show_item);
+        if (!gli) gli = elm_genlist_last_item_get(gl);
+        elm_genlist_item_show(gli, g_data->type);
+        //prepends item while queue processing is happening
+        ecore_timer_add(0.1, _late_item_prepender, g_data);
+     }
 
    evas_object_resize(win, 480, 400);
    explode_win_enable(win);

-- 


Reply via email to