From 435b621ee4f2c2041d95910de7a33279f38aa3e2 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 19 Oct 2019 11:53:34 +0100 Subject: [PATCH] database: Fix checking pointer This always evaluated to true which is not what was intended here. Signed-off-by: Michael Tremer --- src/database.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2