diff options
author | sfan5 <sfan5@live.de> | 2018-04-09 16:25:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 16:25:57 +0200 |
commit | 22ebbe136a8a90bc23d7f910a3dee5bf41632115 (patch) | |
tree | e4028a800617d87daac11f803985c935160c6c07 | |
parent | 9a06d6aa9fa2676a3fb4fa494f9318d0c5d7becb (diff) | |
download | minetest-22ebbe136a8a90bc23d7f910a3dee5bf41632115.tar.gz minetest-22ebbe136a8a90bc23d7f910a3dee5bf41632115.tar.bz2 minetest-22ebbe136a8a90bc23d7f910a3dee5bf41632115.zip |
Fix segfault caused by wrong wgettext()
-rw-r--r-- | src/gettext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gettext.h b/src/gettext.h index 4038e3fa8..42b375d86 100644 --- a/src/gettext.h +++ b/src/gettext.h @@ -52,7 +52,7 @@ extern wchar_t *utf8_to_wide_c(const char *str); inline const wchar_t *wgettext(const char *str) { // We must check here that is not an empty string to avoid trying to translate it - return str[0] ? utf8_to_wide_c(gettext(str)) : L""; + return str[0] ? utf8_to_wide_c(gettext(str)) : utf8_to_wide_c(""); } inline std::string strgettext(const std::string &text) |