diff --git a/src/graph.c b/src/graph.c index 9dd3fa5d..be6080e0 100644 --- a/src/graph.c +++ b/src/graph.c @@ -101,7 +101,7 @@ void mst_kruskal(void) /* Starting point */ - for(node = edge_weight_tree->head; node; node = next) { + for(node = edge_weight_tree->head; node; node = node->next) { e = node->data; if(e->from->status.reachable) { e->from->status.visited = true;