Fix use of unitialized variable in gettext.cpp

#2583
This commit is contained in:
Craig Robbins 2015-03-31 21:26:34 +10:00
parent 1fe4256462
commit d1d5618bb8
1 changed files with 3 additions and 3 deletions

View File

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