fixed prevent issue
authorJaeho Lee <jaeho81.lee@samsung.com>
Thu, 24 Jan 2013 11:05:56 +0000 (20:05 +0900)
committerJaeho Lee <jaeho81.lee@samsung.com>
Thu, 24 Jan 2013 11:05:56 +0000 (20:05 +0900)
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
am_daemon/amd_appinfo.c
packaging/aul.spec

index 9a00b45..cc0ed86 100755 (executable)
@@ -216,6 +216,7 @@ static void __vconf_cb(keynode_t *key, void *data)
        char *pkgname;
        pkgmgrinfo_appinfo_h handle;
        struct appinfomgr *cf = (struct appinfomgr *)data;
+       int ret;
 
        noti_string = vconf_keynode_get_str(key);
        if( noti_string == NULL ) {
@@ -228,7 +229,10 @@ static void __vconf_cb(keynode_t *key, void *data)
        appid = strtok_r(NULL, ":", &saveptr);
 
        if ( strncmp(type_string, "create", 6) == 0) {
-               pkgmgrinfo_appinfo_get_appinfo(appid, &handle);
+               ret = pkgmgrinfo_appinfo_get_appinfo(appid, &handle);
+               if(ret < 0) {
+                       _E("pkgmgrinfo_appinfo_get_appinfo fail");
+               }
 
                _D("appid : %s /handle : %x", appid, handle);
 
index 3784288..a36f5a1 100644 (file)
@@ -1,6 +1,6 @@
 Name:       aul
 Summary:    App utility library
-Version:    0.0.236
+Version:    0.0.237
 Release:    1
 Group:      System/Libraries
 License:    Apache License, Version 2.0