elm_prefs.c: handle null check correctly.

This fixes coverity CID 1040035 : Dereference after null check (FORWARD_NULL).
This commit is contained in:
Daniel Juyung Seo 2013-08-11 17:16:08 +09:00
parent e0b1ad5d4d
commit 4f8206d650
1 changed files with 1 additions and 2 deletions

View File

@ -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