Commit 3dc8adfb authored by Michael Tremer's avatar Michael Tremer

network: Initialize country code with nothing

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 94a3f329
......@@ -361,7 +361,7 @@ LOC_EXPORT int loc_network_to_database_v0(struct loc_network* network, struct lo
LOC_EXPORT int loc_network_new_from_database_v0(struct loc_ctx* ctx, struct loc_network** network,
struct in6_addr* address, unsigned int prefix, const struct loc_database_network_v0* dbobj) {
char country_code[3];
char country_code[3] = "\0\0";
int r = loc_network_new(ctx, network, address, prefix);
if (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