From: Junghyun Yeon Date: Tue, 7 Jun 2016 07:17:23 +0000 (+0900) Subject: Fix to check existance of zip mount file info X-Git-Tag: accepted/tizen/common/20160607.194647~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F73205%2F2;p=platform%2Fcore%2Fappfw%2Fpkgmgr-info.git Fix to check existance of zip mount file info Change-Id: I3120f2e4b8a314d4e4817603dcd2f29e61f330af Signed-off-by: Junghyun Yeon --- diff --git a/src/pkgmgrinfo_pkginfo.c b/src/pkgmgrinfo_pkginfo.c index 09e9457..051979f 100644 --- a/src/pkgmgrinfo_pkginfo.c +++ b/src/pkgmgrinfo_pkginfo.c @@ -954,7 +954,8 @@ API int pkgmgrinfo_pkginfo_get_zip_mount_file(pkgmgrinfo_pkginfo_h handle, char if (info->pkg_info == NULL) return PMINFO_R_ERROR; - if (strlen(info->pkg_info->zip_mount_file) > 0) + if (info->pkg_info->zip_mount_file && + strlen(info->pkg_info->zip_mount_file) > 0) *zip_mount_file = (char *)info->pkg_info->zip_mount_file; return PMINFO_R_OK;