projects
/
platform
/
core
/
appfw
/
app-installers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ed8f04
)
Fix QueryTepPath
36/65336/1
author
Tomasz Iwanek
<t.iwanek@samsung.com>
Fri, 8 Apr 2016 11:39:44 +0000
(13:39 +0200)
committer
Tomasz Iwanek
<t.iwanek@samsung.com>
Fri, 8 Apr 2016 11:40:55 +0000
(13:40 +0200)
Return value causes exception.
Change-Id: Ia79074d06abead1208b18fa6bad68b4c036f3346
src/common/pkgmgr_registration.cc
patch
|
blob
|
history
diff --git
a/src/common/pkgmgr_registration.cc
b/src/common/pkgmgr_registration.cc
index
f741868
..
665027d
100644
(file)
--- a/
src/common/pkgmgr_registration.cc
+++ b/
src/common/pkgmgr_registration.cc
@@
-251,7
+251,7
@@
std::string QueryTepPath(const std::string& pkgid, uid_t uid) {
pkgmgrinfo_pkginfo_h package_info;
if (pkgmgrinfo_pkginfo_get_usr_pkginfo(pkgid.c_str(), uid, &package_info)
!= PMINFO_R_OK)
- return
false
;
+ return
{}
;
char* tep_name = nullptr;
int ret = pkgmgrinfo_pkginfo_get_tep_name(package_info, &tep_name);
if (ret != PMINFO_R_OK) {