Fix to check existance of zip mount file info 05/73205/2
authorJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 7 Jun 2016 07:17:23 +0000 (16:17 +0900)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Tue, 7 Jun 2016 08:43:35 +0000 (01:43 -0700)
Change-Id: I3120f2e4b8a314d4e4817603dcd2f29e61f330af
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/pkgmgrinfo_pkginfo.c

index 09e9457..051979f 100644 (file)
@@ -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;