projects
/
platform
/
core
/
api
/
preference.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68342bc
)
Add an exception handling about out of memory
77/142377/1
author
Hwankyu Jhun
<h.jhun@samsung.com>
Thu, 3 Aug 2017 22:54:30 +0000
(07:54 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Thu, 3 Aug 2017 22:54:30 +0000
(07:54 +0900)
Change-Id: Ibdd105960ed63922f17d56a8dcc7017948ac2716
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/preference.c
patch
|
blob
|
history
diff --git
a/src/preference.c
b/src/preference.c
index 6e78b4e8cbe93ab5172fe17c7d22cd3dddce446e..86d798d3d7cd4ebdd9b7c0376478b87ae8a01cc1 100644
(file)
--- a/
src/preference.c
+++ b/
src/preference.c
@@
-90,6
+90,10
@@
char *_preference_get_pref_dir_path()
if (!g_pref_dir_path) {
g_pref_dir_path = (char *)malloc(PREFERENCE_KEY_PATH_LEN + 1);
+ if (!g_pref_dir_path) {
+ ERR("Out of memory");
+ return NULL;
+ }
if ((app_data_path = app_get_data_path()) == NULL) {
/* LCOV_EXCL_START */