From 22ebbe136a8a90bc23d7f910a3dee5bf41632115 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 9 Apr 2018 16:25:57 +0200 Subject: Fix segfault caused by wrong wgettext() --- src/gettext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3