win: bug fix - add missing NULL checking in _elm_win_translate 45/105945/2
authorJaeun Choi <jaeun12.choi@samsung.com>
Tue, 20 Dec 2016 05:55:11 +0000 (14:55 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Tue, 20 Dec 2016 06:07:02 +0000 (22:07 -0800)
_elm_config might not be initialized at the point

@tizen_fix

Change-Id: Ifd31a884f484aaf1a277434fbc5d7818c20efb3f

src/lib/elm_win.c

index 1b23270..19bb0bb 100644 (file)
@@ -3032,7 +3032,7 @@ _elm_win_translate(void)
    /* END */
 
    //TIZEN_ONLY(20161202): Temporary code - Apply mirroring in _elm_win_translate()
-   if (_elm_config->language_auto_mirrored)
+   if (_elm_config && _elm_config->language_auto_mirrored)
      {
         if (!strcmp(E_("default:LTR"), "default:RTL"))
           elm_config_mirrored_set(EINA_TRUE);