From: Michael Tremer Date: Tue, 24 Nov 2020 15:22:02 +0000 (+0000) Subject: database: Read the first element from the list X-Git-Tag: 0.9.5~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=04cbd2bfa892fc7374ad506ec7ba81727c5a4b96;p=people%2Fms%2Flibloc.git database: Read the first element from the list Signed-off-by: Michael Tremer --- diff --git a/src/database.c b/src/database.c index f1f6ae0..914ed3e 100644 --- a/src/database.c +++ b/src/database.c @@ -1191,7 +1191,7 @@ static int __loc_database_enumerator_next_network( struct loc_database_enumerator* enumerator, struct loc_network** network, int filter) { // Return top element from the stack while (1) { - *network = loc_network_list_pop(enumerator->stack); + *network = loc_network_list_pop_first(enumerator->stack); // Stack is empty if (!*network)