From: Michael Tremer Date: Wed, 9 Mar 2022 11:09:25 +0000 (+0000) Subject: writer: I forgot to initalize the country list X-Git-Tag: 0.9.12~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d57cf1fcaade745175620e1f7f8bbaa2b8103084;p=location%2Flibloc.git writer: I forgot to initalize the country list Signed-off-by: Michael Tremer --- diff --git a/src/writer.c b/src/writer.c index 67676a4..4420972 100644 --- a/src/writer.c +++ b/src/writer.c @@ -116,6 +116,13 @@ LOC_EXPORT int loc_writer_new(struct loc_ctx* ctx, struct loc_writer** writer, return r; } + // Initialize countries list + r = loc_country_list_new(ctx, &w->country_list); + if (r) { + loc_writer_unref(w); + return r; + } + // Load the private keys to sign databases if (fkey1) { r = parse_private_key(w, &w->private_key1, fkey1);