Commit 47bea941 authored by Michael Tremer's avatar Michael Tremer

writer: Write countries before pool is being written

Otherwise the names will obviously not be written
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent d7c9d57b
......@@ -507,13 +507,13 @@ LOC_EXPORT int loc_writer_write(struct loc_writer* writer, FILE* f) {
if (r)
return r;
// Write pool
r = loc_database_write_pool(writer, &header, &offset, f);
// Write countries
r = loc_database_write_countries(writer, &header, &offset, f);
if (r)
return r;
// Write countries
r = loc_database_write_countries(writer, &header, &offset, f);
// Write pool
r = loc_database_write_pool(writer, &header, &offset, f);
if (r)
return r;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment