aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2018-04-09 16:25:57 +0200
committerSmallJoker <mk939@ymail.com>2018-06-03 17:32:00 +0200
commita6cfe73cb057001f214bd8c6cebc3d699dba16b7 (patch)
treec1d5f14d6151fec3c95de8ddafad5d48a55ae38f /src
parent1d06a8ef6c2e5a66c4f109b7ef9cb76c31e3ce4f (diff)
downloadminetest-a6cfe73cb057001f214bd8c6cebc3d699dba16b7.tar.gz
minetest-a6cfe73cb057001f214bd8c6cebc3d699dba16b7.tar.bz2
minetest-a6cfe73cb057001f214bd8c6cebc3d699dba16b7.zip
Fix segfault caused by wrong wgettext()
Diffstat (limited to 'src')
-rw-r--r--src/gettext.h2
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)