diff --git a/gossipd/test/.gitignore b/gossipd/test/.gitignore index 306731586..fc88c5323 100644 --- a/gossipd/test/.gitignore +++ b/gossipd/test/.gitignore @@ -1 +1,2 @@ run-find_route +run-bench-find_route diff --git a/gossipd/test/run-bench-find_route.c b/gossipd/test/run-bench-find_route.c index 9407a1943..6f40e8fa7 100644 --- a/gossipd/test/run-bench-find_route.c +++ b/gossipd/test/run-bench-find_route.c @@ -113,7 +113,7 @@ static void populate_random_node(struct routing_state *rstate, u64 n) { struct pubkey id = nodeid(n); - /* Create up to 2 random channels. */ + /* Create 2 random channels. */ if (n < 1) return; @@ -189,7 +189,7 @@ int main(int argc, char *argv[]) struct pubkey from = nodeid(pseudorand(num_nodes)); struct pubkey to = nodeid(pseudorand(num_nodes)); u64 fee; - struct node_connection **route, *nc; + struct node_connection **route = NULL, *nc; nc = find_route(ctx, rstate, &from, &to, pseudorand(100000),