fixed prevent issues
authorJaeho Lee <jaeho81.lee@samsung.com>
Mon, 7 Jan 2013 09:12:01 +0000 (18:12 +0900)
committerJaeho Lee <jaeho81.lee@samsung.com>
Mon, 7 Jan 2013 09:12:01 +0000 (18:12 +0900)
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
packaging/app-core.spec
src/appcore.c

index 3366b51..e717bf5 100644 (file)
@@ -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
index 9e08062..ace9e89 100755 (executable)
@@ -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)