projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fe4256
)
Fix use of unitialized variable in gettext.cpp
author
Craig Robbins
<kde.psych@gmail.com>
Tue, 31 Mar 2015 11:26:34 +0000
(21:26 +1000)
committer
Craig Robbins
<kde.psych@gmail.com>
Tue, 31 Mar 2015 11:26:34 +0000
(21:26 +1000)
#2583
src/gettext.cpp
patch
|
blob
|
history
diff --git
a/src/gettext.cpp
b/src/gettext.cpp
index 20453b9147d7c2854127876693828f2d8ac7115e..509d506d42239230da033fda148931a08e67a786 100644
(file)
--- 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