projects
/
platform
/
core
/
appfw
/
app-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9f4925
)
Fix static analysis issue
80/125880/2
author
Hwankyu Jhun
<h.jhun@samsung.com>
Wed, 19 Apr 2017 07:49:30 +0000
(16:49 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Wed, 19 Apr 2017 07:57:02 +0000
(16:57 +0900)
- Check whether the return value of the vconf_key_node_get_name()
is null or NOT.
Change-Id: I797769594b4b320c6dc07022a1fbf8cedc62c18f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/base/appcore_base.c
patch
|
blob
|
history
diff --git
a/src/base/appcore_base.c
b/src/base/appcore_base.c
index
3e3c767
..
ddc952b
100644
(file)
--- a/
src/base/appcore_base.c
+++ b/
src/base/appcore_base.c
@@
-622,7
+622,7
@@
static void __on_region_change(keynode_t *key, void *data)
const char *name;
name = vconf_keynode_get_name(key);
- if (!strcmp(name, VCONFKEY_REGIONFORMAT))
+ if (
name &&
!strcmp(name, VCONFKEY_REGIONFORMAT))
val = vconf_keynode_get_str(key);
__update_region();