From: junsuk77.oh Date: Wed, 15 May 2013 12:52:18 +0000 (+0900) Subject: fix permission crash error X-Git-Tag: submit/tizen_2.2/20130714.153417~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f82116040035423a724be96bdd704083daa059ad;p=framework%2Fappfw%2Fpkgmgr-info.git fix permission crash error Change-Id: Id4da031b6d11e39ade4c217984deb8f499a0285f Signed-off-by: junsuk77.oh --- diff --git a/packaging/pkgmgr-info.spec b/packaging/pkgmgr-info.spec index 8e63e75..5bca15a 100755 --- a/packaging/pkgmgr-info.spec +++ b/packaging/pkgmgr-info.spec @@ -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 diff --git a/src/pkgmgr-info.c b/src/pkgmgr-info.c index e5b6224..4da9f59 100755 --- a/src/pkgmgr-info.c +++ b/src/pkgmgr-info.c @@ -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;