diff --git a/gossipd/routing.c b/gossipd/routing.c index 388425128..b016eba4b 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -988,7 +988,7 @@ find_shorter_route(const tal_t *ctx, struct routing_state *rstate, struct amount_msat *fee) { struct unvisited *unvisited; - struct chan **short_route; + struct chan **short_route = NULL; struct amount_msat long_cost, short_cost, cost_diff; u64 min_bias, max_bias; double riskfactor;