tasn pushed a commit to branch master.

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

commit d2bdd969aa30439d53fb68c9c3ef2bfd6b221fb4
Author: Tom Hacohen <t...@stosb.com>
Date:   Sun Oct 4 17:51:29 2015 +0100

    Revert "Genlist: only get item data if needed."
    
    This actually doesn't work for coverity, I guess we just need to mark it
    as false-positive, as it will never be null.
    
    This reverts commit 178e7e6ac9419742d1bbe583fd252fc6536e5649.
---
 src/lib/elm_genlist.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index a5a34ff..cb71fb9 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -3941,12 +3941,11 @@ _swipe_do(Elm_Gen_Item *it)
 {
    int i, sum = 0;
    Eina_Bool tmp;
+   ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
 
    if (_is_no_select(it) ||
        eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get())) return;
 
-   ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
-
    sd->swipe = EINA_FALSE;
    for (i = 0; i < sd->movements; i++)
      {

-- 


Reply via email to