Fix segfault caused by wrong wgettext()

This commit is contained in:
sfan5 2018-04-09 16:25:57 +02:00
parent 1be118dcc2
commit 66f1b01a2d
1 changed files with 1 additions and 1 deletions

View File

@ -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)