diff options
author | sfan5 <sfan5@live.de> | 2018-04-09 16:25:57 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-03 17:32:00 +0200 |
commit | a6cfe73cb057001f214bd8c6cebc3d699dba16b7 (patch) | |
tree | c1d5f14d6151fec3c95de8ddafad5d48a55ae38f | |
parent | 1d06a8ef6c2e5a66c4f109b7ef9cb76c31e3ce4f (diff) | |
download | minetest-a6cfe73cb057001f214bd8c6cebc3d699dba16b7.tar.gz minetest-a6cfe73cb057001f214bd8c6cebc3d699dba16b7.tar.bz2 minetest-a6cfe73cb057001f214bd8c6cebc3d699dba16b7.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 170d75dee..9aa6b3a27 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) |