From: Michael Tremer Date: Sat, 19 Oct 2019 10:53:34 +0000 (+0100) Subject: database: Fix checking pointer X-Git-Tag: 0.9.0~24 X-Git-Url: http://git.ipfire.org/?p=people%2Fms%2Flibloc.git;a=commitdiff_plain;h=435b621ee4f2c2041d95910de7a33279f38aa3e2 database: Fix checking pointer This always evaluated to true which is not what was intended here. Signed-off-by: Michael Tremer --- diff --git a/src/database.c b/src/database.c index 3439b15..5d808fe 100644 --- a/src/database.c +++ b/src/database.c @@ -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;