Commit 435b621e authored by Michael Tremer's avatar Michael Tremer

database: Fix checking pointer

This always evaluated to true which is not what was intended here.
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 2e2325a9
......@@ -921,7 +921,7 @@ LOC_EXPORT int loc_database_enumerator_next_network(
// Check if we are interested in this network
// Skip if the country code does not match
if (enumerator->country_code &&
if (*enumerator->country_code &&
!loc_network_match_country_code(*network, enumerator->country_code)) {
loc_network_unref(*network);
*network = NULL;
......
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