diff options
author | Sangyoon Jang <s89.jang@samsung.com> | 2015-02-25 21:20:39 +0900 |
---|---|---|
committer | Sangyoon Jang <s89.jang@samsung.com> | 2015-02-25 21:26:45 +0900 |
commit | 9f5c8b44dc462dcb9294f84e9b61170a88d517ac (patch) | |
tree | c5f48a6f1bb9d4b72a22a3dcd088444067c6cbdd | |
parent | 0acedef9152b5258ddef162edc8f377cfa92db37 (diff) | |
download | aul-1-9f5c8b44dc462dcb9294f84e9b61170a88d517ac.tar.gz aul-1-9f5c8b44dc462dcb9294f84e9b61170a88d517ac.tar.bz2 aul-1-9f5c8b44dc462dcb9294f84e9b61170a88d517ac.zip |
Fix bug: killing apps abnormally when launching appsubmit/tizen_wearable/20150225.124301submit/tizen_tv/20150225.124301submit/tizen_mobile/20150225.124301submit/tizen_common/20150226.010729accepted/tizen/wearable/20150226.065656accepted/tizen/tv/20150226.011428
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.c | 4 |
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; |