projects
/
platform
/
core
/
appfw
/
wgt-backend.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77476e8
)
Fix crash issue when getting the locale was failed
74/126074/1
author
jongmyeongko
<jongmyeong.ko@samsung.com>
Wed, 19 Apr 2017 09:15:56 +0000
(18:15 +0900)
committer
jongmyeong ko
<jongmyeong.ko@samsung.com>
Thu, 20 Apr 2017 05:01:32 +0000
(22:01 -0700)
Change-Id: Id4c860204b942a636bbd6f01b00ae99551cbddc7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
(cherry picked from commit
88fc2091153fda400934a7056617b8bc16e12383
)
src/lib/wgt_archive_info.cc
patch
|
blob
|
history
diff --git
a/src/lib/wgt_archive_info.cc
b/src/lib/wgt_archive_info.cc
index
5e95b1f
..
eb508e1
100644
(file)
--- a/
src/lib/wgt_archive_info.cc
+++ b/
src/lib/wgt_archive_info.cc
@@
-28,7
+28,7
@@
namespace ci = common_installer;
namespace {
-const char kVconfLanguageKey[] =
"db/menu_widget/language"
;
+const char kVconfLanguageKey[] =
VCONFKEY_LANGSET
;
const char kConfigFileName[] = "config.xml";
const char kHybridConfigFileName[] = "res/wgt/config.xml";
@@
-226,6
+226,8
@@
bool WgtArchiveInfo::GetArchiveInfo(const char* file_path,
}
char* locale = vconf_get_str(kVconfLanguageKey);
+ if (!locale)
+ locale = strdup("");
if (!GetLabelInfo(parser, locale, info))
LOG(WARNING) << "Failed to get label info";
if (!GetDescriptionInfo(parser, locale, info))