projects
/
platform
/
core
/
appfw
/
pkgmgr-info.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c73ac81
)
Fix to check existance of zip mount file info
05/73205/2
author
Junghyun Yeon
<jungh.yeon@samsung.com>
Tue, 7 Jun 2016 07:17:23 +0000
(16:17 +0900)
committer
jongmyeong 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
patch
|
blob
|
history
diff --git
a/src/pkgmgrinfo_pkginfo.c
b/src/pkgmgrinfo_pkginfo.c
index
09e9457
..
051979f
100644
(file)
--- 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;