seoz pushed a commit to branch master.

commit d6a0f087f54dc3341e21c14db5c3f1fe117f5801
Author: Daniel Juyung Seo <[email protected]>
Date:   Sat Jul 6 12:56:58 2013 +0900

    elm_genlist.c: do not check null. it should not be a null and it was 
already dereferenced.
    
    This fixes 'dereference before null check' issue which was spotted by 
coverity. CID 1040000.
---
 src/lib/elm_genlist.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 2112638..7bfc592 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -3309,7 +3309,6 @@ _swipe_do(Elm_Gen_Item *it)
    int i, sum = 0;
    ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
 
-   if (!it) return;
    if ((it->select_mode == ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY) ||
        elm_widget_item_disabled_get(it)) return;
 

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to