forked from enlightenment/efl
elm_prefs.c: handle null check correctly.
This fixes coverity CID 1040035 : Dereference after null check (FORWARD_NULL).
This commit is contained in:
parent
e0b1ad5d4d
commit
4f8206d650
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue