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;
|
int l;
|
||||||
|
|
||||||
l = read_xml(filename, catalog);
|
l = read_xml(filename, catalog);
|
||||||
|
init_locales();
|
||||||
if (l)
|
if (l)
|
||||||
return l;
|
return l;
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,6 @@ int read_xml(const char *filename, const char *catalog)
|
||||||
result = 0;
|
result = 0;
|
||||||
}
|
}
|
||||||
xmlFreeDoc(doc);
|
xmlFreeDoc(doc);
|
||||||
init_locales();
|
|
||||||
return result;
|
return result;
|
||||||
#else
|
#else
|
||||||
log_error("LIBXML2 disabled, cannot read %s.\n", filename);
|
log_error("LIBXML2 disabled, cannot read %s.\n", filename);
|
||||||
|
|
Loading…
Reference in New Issue