added error handle
authorJaeho Lee <jaeho81.lee@samsung.com>
Thu, 10 Jan 2013 05:32:34 +0000 (14:32 +0900)
committerJaeho Lee <jaeho81.lee@samsung.com>
Thu, 10 Jan 2013 05:32:34 +0000 (14:32 +0900)
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
am_daemon/amd_appinfo.c
packaging/aul.spec

index 86bfb8e..9a00b45 100755 (executable)
@@ -88,13 +88,18 @@ static int __app_info_insert_handler (const pkgmgrinfo_appinfo_h handle, void *d
        bool restart;
        pkgmgrinfo_app_hwacceleration hwacc;
        pkgmgrinfo_app_component component;
+       int ret = -1;
 
        if (!handle) {
                _E("null app handle");
                return -1;
        }
 
-       pkgmgrinfo_appinfo_get_appid(handle, &appid);
+       ret = pkgmgrinfo_appinfo_get_appid(handle, &appid);
+       if (ret < 0) {
+               _E("fail to get appinfo");
+               return -1;
+       }
 
        g_hash_table_remove(cf->tbl, appid);
 
index 8385605..71addab 100644 (file)
@@ -1,6 +1,6 @@
 Name:       aul
 Summary:    App utility library
-Version:    0.0.228
+Version:    0.0.229
 Release:    1
 Group:      System/Libraries
 License:    Apache License, Version 2.0