seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=7b54b22bf8296bb23533b17ec069f2c2e1285451

commit 7b54b22bf8296bb23533b17ec069f2c2e1285451
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Sun Dec 14 12:07:06 2014 +0900

    test_genlist: Remove unused value.
    
    This fixes coverity CID 1258428.
---
 src/bin/test_genlist.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index 1b349e7..448e417 100644
--- a/src/bin/test_genlist.c
+++ b/src/bin/test_genlist.c
@@ -4651,14 +4651,13 @@ test_genlist_focus(void *data EINA_UNUSED,
         for (rhand = 0; rhand < _gl_focus_objects; rhand++)
           {
              unsigned digit1 = lhand * 10 + rhand;
-             it = elm_genlist_item_append(gl, itc1, (void*)(uintptr_t)digit1,
-                                          NULL, ELM_GENLIST_ITEM_NONE, NULL, 
NULL);
+             elm_genlist_item_append(gl, itc1, (void*)(uintptr_t)digit1,
+                                     NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
 
              unsigned digit2 = (_gl_focus_objects - lhand -1) * 10 +
                 (_gl_focus_objects - rhand -1);
              it = elm_genlist_item_append(gl, itc1, (void*)(uintptr_t)digit2,
                                           NULL, ELM_GENLIST_ITEM_NONE, NULL, 
NULL);
-             if (!it_2) it_2 = it;
              if (rhand == 4)
                elm_object_item_disabled_set(it, EINA_TRUE);
 

-- 


Reply via email to