summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangyoon Jang <s89.jang@samsung.com>2015-02-25 21:20:39 +0900
committerSangyoon Jang <s89.jang@samsung.com>2015-02-25 21:26:45 +0900
commit9f5c8b44dc462dcb9294f84e9b61170a88d517ac (patch)
treec5f48a6f1bb9d4b72a22a3dcd088444067c6cbdd
parent0acedef9152b5258ddef162edc8f377cfa92db37 (diff)
downloadaul-1-9f5c8b44dc462dcb9294f84e9b61170a88d517ac.tar.gz
aul-1-9f5c8b44dc462dcb9294f84e9b61170a88d517ac.tar.bz2
aul-1-9f5c8b44dc462dcb9294f84e9b61170a88d517ac.zip
some local variable is not initialized set default value when failed to get vconf value Change-Id: I8e4fa3414f950418899d3bb70c9431341c48a470 Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
-rw-r--r--am_daemon/amd_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/am_daemon/amd_main.c b/am_daemon/amd_main.c
index 41270970..bbc62fd4 100644
--- a/am_daemon/amd_main.c
+++ b/am_daemon/amd_main.c
@@ -150,8 +150,10 @@ gboolean __add_item_running_list(gpointer user_data)
pkgname = item->appid;
pid = item->pid;
user = item->uid;
- if (vconf_get_int(VCONFKEY_SETAPPL_DEVOPTION_BGPROCESS, &limit) != 0)
+ if (vconf_get_int(VCONFKEY_SETAPPL_DEVOPTION_BGPROCESS, &limit) != 0) {
_E("Unable to get VCONFKEY_SETAPPL_DEVOPTION_BGPROCESS\n");
+ limit = 0;
+ }
if (pkgname == NULL)
return false;