Added explicit braces to placate gcc 4.3
This commit is contained in:
parent
aff6f53f21
commit
cd31218778
1 changed files with 2 additions and 1 deletions
|
@ -202,11 +202,12 @@ static void wesnoth_setlocale(int category, std::string const &slocale,
|
|||
#ifdef USE_DUMMYLOCALES
|
||||
static enum { UNINIT, NONE, PRESENT } status = UNINIT;
|
||||
static std::string locpath;
|
||||
if (status == UNINIT)
|
||||
if (status == UNINIT) {
|
||||
if (char const *p = getenv("LOCPATH")) {
|
||||
locpath = p;
|
||||
status = PRESENT;
|
||||
} else status = NONE;
|
||||
}
|
||||
if (slocale.empty())
|
||||
if (status == NONE)
|
||||
unsetenv("LOCPATH");
|
||||
|
|
Loading…
Add table
Reference in a new issue