From: Michael Tremer Date: Fri, 5 Jan 2018 16:44:56 +0000 (+0000) Subject: network: Fix walking through the tree in order X-Git-Tag: 0.9.0~124 X-Git-Url: http://git.ipfire.org/?p=location%2Flibloc.git;a=commitdiff_plain;h=3eda9cab1cf2dc6abacafdacab5417bcc53e7aba network: Fix walking through the tree in order Signed-off-by: Michael Tremer --- diff --git a/src/network.c b/src/network.c index 2758972..296a354 100644 --- a/src/network.c +++ b/src/network.c @@ -369,9 +369,9 @@ static struct loc_network_tree_node* loc_network_tree_get_node(struct loc_networ struct loc_network_tree_node** n; if (path) - n = &node->one; - else n = &node->zero; + else + n = &node->one; // If the desired node doesn't exist, yet, we will create it if (*n == NULL) {