From: Thiep Ha Date: Wed, 21 Sep 2016 07:54:09 +0000 (+0900) Subject: elm_config: add null check before usage X-Git-Tag: upstream/1.20.0~4258 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3689a803dbfe1297e706d2fbfde239d641652de1;p=platform%2Fupstream%2Fefl.git elm_config: add null check before usage --- diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c index af8394b..0fe52b8 100644 --- a/src/lib/elementary/elm_config.c +++ b/src/lib/elementary/elm_config.c @@ -3772,9 +3772,10 @@ _translation_init(void) * en_/C where translating only parts of the interface make some * sense). */ - _elm_config->translate = !(strcmp (cur_dom, "messages") && - !*trans_comment && strncmp (msg_locale, "en_", 3) && - strcmp (msg_locale, "C")); + if (msg_locale) + _elm_config->translate = !(strcmp (cur_dom, "messages") && + !*trans_comment && strncmp (msg_locale, "en_", 3) && + strcmp (msg_locale, "C")); /* Get RTL orientation from system */ if (_elm_config->translate) {