]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/database.c
Mark all nodes as non-visited after walk through tree has completed
[people/ms/libloc.git] / src / database.c
index 37a44e5e37aa21a14db8e75ed1374c203078a951..7950b46c943758de5a729a3bb561c254b5ac4e83 100644 (file)
@@ -778,7 +778,10 @@ static int loc_database_enumerator_network_depth_first_search(
        }
 
        // Reached the end of the search
-       // TODO cleanup
+
+       // Mark all nodes as non-visited
+       for (unsigned int i = 0; i < e->db->network_nodes_count; i++)
+               e->networks_visited[i] = 0;
 
        return 0;
 }