seoz pushed a commit to branch master.

commit 1da588954274895b633ffa608a5ca7af813a5015
Author: Daniel Juyung Seo <[email protected]>
Date:   Sun Aug 11 17:16:08 2013 +0900

    elm_prefs.c: handle null check correctly.
    
    This fixes coverity CID 1040035 : Dereference after null check 
(FORWARD_NULL).
---
 src/lib/elm_prefs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/elm_prefs.c b/src/lib/elm_prefs.c
index 92139d3..f2b8b3f 100644
--- a/src/lib/elm_prefs.c
+++ b/src/lib/elm_prefs.c
@@ -1566,8 +1566,7 @@ _elm_prefs_item_object_get(Eo *obj, void *_pd 
EINA_UNUSED, va_list *list)
 
    it = _elm_prefs_item_api_entry_common(obj, name);
    if (!it) *ret = NULL;
-
-   *ret = it->w_obj;
+   else *ret = it->w_obj;
 }
 
 EAPI void

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to