fix code to work with gcc, move init_locales() outside of util.

This commit is contained in:
Enno Rehling 2014-07-17 15:16:57 +02:00
parent 97de950884
commit 4c4652667c
2 changed files with 1 additions and 1 deletions

View File

@ -4695,6 +4695,7 @@ int init_data(const char *filename, const char *catalog)
int l;
l = read_xml(filename, catalog);
init_locales();
if (l)
return l;

View File

@ -136,7 +136,6 @@ int read_xml(const char *filename, const char *catalog)
result = 0;
}
xmlFreeDoc(doc);
init_locales();
return result;
#else
log_error("LIBXML2 disabled, cannot read %s.\n", filename);