From a80c0d53f54c749dd0804841c05c95fd285f9476 Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Tue, 7 Jun 2016 16:17:23 +0900 Subject: [PATCH] Fix to check existance of zip mount file info Change-Id: I3120f2e4b8a314d4e4817603dcd2f29e61f330af Signed-off-by: Junghyun Yeon --- src/pkgmgrinfo_pkginfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.7.4