fix permission crash error
authorjunsuk77.oh <junsuk77.oh@samsung.com>
Wed, 15 May 2013 12:52:18 +0000 (21:52 +0900)
committerjunsuk77.oh <junsuk77.oh@samsung.com>
Wed, 15 May 2013 12:52:18 +0000 (21:52 +0900)
Change-Id: Id4da031b6d11e39ade4c217984deb8f499a0285f
Signed-off-by: junsuk77.oh <junsuk77.oh@samsung.com>
packaging/pkgmgr-info.spec
src/pkgmgr-info.c

index 8e63e75..5bca15a 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       pkgmgr-info
 Summary:    Packager Manager infomation api for package
-Version:    0.0.110
+Version:    0.0.111
 Release:    1
 Group:      Application Framework/Package Management
 License:    Apache-2.0
index e5b6224..4da9f59 100755 (executable)
@@ -4768,14 +4768,7 @@ API int pkgmgrinfo_appinfo_get_permission_type(pkgmgrinfo_appinfo_h  handle, pkg
        char *val = NULL;
        pkgmgr_appinfo_x *info = (pkgmgr_appinfo_x *)handle;
 
-       if (info->app_component == PMINFO_UI_APP)
-               val = info->uiapp_info->permission_type;
-       else if (info->app_component == PMINFO_SVC_APP)
-               val = info->svcapp_info->permission_type;
-       else {
-               _LOGE("app_component is not supported\n");
-               return PMINFO_R_EINVAL;
-       }
+       val = info->uiapp_info->permission_type;
 
        if (strcmp(val, "signature") == 0)
                *permission = PMINFO_PERMISSION_SIGNATURE;