projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4021be2
)
elm_prefs.c: handle null check correctly.
author
Daniel Juyung Seo
<seojuyung2@gmail.com>
Sun, 11 Aug 2013 08:16:08 +0000
(17:16 +0900)
committer
Daniel Juyung Seo
<seojuyung2@gmail.com>
Sun, 11 Aug 2013 08:16:08 +0000
(17:16 +0900)
This fixes coverity CID
1040035
: Dereference after null check (FORWARD_NULL).
src/lib/elm_prefs.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_prefs.c
b/src/lib/elm_prefs.c
index 92139d39f8147916b2a892d89068e5eac6b11fe9..f2b8b3fbc2349d41d061aab34a542ba38ef56ca2 100644
(file)
--- 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