Skip to content

Commit

Permalink
Fix use of unitialized variable in gettext.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeno- committed Mar 31, 2015
1 parent 1fe4256 commit d1d5618
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gettext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1d5618

Please sign in to comment.