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 3366b517c0bf38785f0fc39b783d07ec5dce6844..e717bf58f6604f89b006b897ce3151d74444727b 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 9e080629aad2c1b4e791ffbe3e188d6452e3c4e7..ace9e896c06860b6a58a67576aa3c629455efb73 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)