forked from github/server
fix code to work with gcc, move init_locales() outside of util.
This commit is contained in:
parent
97de950884
commit
4c4652667c
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue