]> git.meshlink.io Git - meshlink/blobdiff - src/graph.c
Fix more compiler warnings.
[meshlink] / src / graph.c
index c6e413d40f6fae3e1a763d74ded701f209d2e409..754626edd8a117fa15ddcdf9845a18c1aa43ae16 100644 (file)
@@ -126,8 +126,8 @@ static void sssp_bfs(meshlink_handle_t *mesh) {
                        list_insert_tail(todo_list, e->to);
                }
 
-               next = node->next; /* Because the list_insert_tail() above could have added something extra for us! */
-               list_delete_node(todo_list, node);
+               list_next = list_node->next; /* Because the list_insert_tail() above could have added something extra for us! */
+               list_delete_node(todo_list, list_node);
        }
 
        list_free(todo_list);