From: Craig Robbins Date: Tue, 31 Mar 2015 11:26:34 +0000 (+1000) Subject: Fix use of unitialized variable in gettext.cpp X-Git-Tag: 0.4.13~405 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d1d5618bb829127d8e138f354bf5a4f23852df59;p=oweals%2Fminetest.git Fix use of unitialized variable in gettext.cpp #2583 --- diff --git a/src/gettext.cpp b/src/gettext.cpp index 20453b914..509d506d4 100644 --- a/src/gettext.cpp +++ b/src/gettext.cpp @@ -236,9 +236,9 @@ void init_gettext(const char *path, const std::string &configured_language) { #endif #endif - static const char *name = lowercase(PROJECT_NAME).c_str(); - bindtextdomain(name, path); - textdomain(name); + static std::string name = lowercase(PROJECT_NAME); + bindtextdomain(name.c_str(), path); + textdomain(name.c_str()); #if defined(_WIN32) // Set character encoding for Win32