Added explicit braces to placate gcc 4.3

This commit is contained in:
Sergey Popov 2008-06-13 10:04:58 +00:00
parent aff6f53f21
commit cd31218778

View file

@ -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");