From: Jaeho Lee Date: Mon, 7 Jan 2013 09:12:01 +0000 (+0900) Subject: fixed prevent issues X-Git-Tag: 2.1b_release~2^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06beabc17e997464cfafd35706ce4e65864e8da0;p=platform%2Fcore%2Fappfw%2Fapp-core.git fixed prevent issues Signed-off-by: Jaeho Lee --- diff --git a/packaging/app-core.spec b/packaging/app-core.spec index 3366b51..e717bf5 100644 --- a/packaging/app-core.spec +++ b/packaging/app-core.spec @@ -2,7 +2,7 @@ Name: app-core Summary: Application basic Version: 1.2 -Release: 39 +Release: 40 Group: TO_BE/FILLED_IN License: Apache License, Version 2.0 Source0: app-core-%{version}.tar.gz diff --git a/src/appcore.c b/src/appcore.c index 9e08062..ace9e89 100755 --- a/src/appcore.c +++ b/src/appcore.c @@ -143,7 +143,8 @@ static int __get_dir_name(char *dirname) if (pid < 0) return -1; - aul_app_get_pkgname_bypid(pid, pkg_name, PKGNAME_MAX); + if (aul_app_get_pkgname_bypid(pid, pkg_name, PKGNAME_MAX) != AUL_R_OK) + return -1; r = snprintf(dirname, PATH_MAX, PATH_APP_ROOT "/%s" PATH_RES PATH_LOCALE,pkg_name); if (r < 0)