From 020a03fc3b2a086fd7e1bb07ea8ee676be1f9bb9 Mon Sep 17 00:00:00 2001 From: Lagrang3 Date: Mon, 15 Jan 2024 09:17:41 +0100 Subject: [PATCH] fix CIL maybe-uninitialized variable --- plugins/renepay/mcf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/renepay/mcf.c b/plugins/renepay/mcf.c index a6f64dded..6ab7a8767 100644 --- a/plugins/renepay/mcf.c +++ b/plugins/renepay/mcf.c @@ -1508,6 +1508,7 @@ struct flow **minflow(const tal_t *ctx, struct gossmap *gossmap, { tal_t *this_ctx = tal(ctx,tal_t); char *errmsg; + struct flow **best_flow_paths = NULL; struct pay_parameters *params = tal(this_ctx,struct pay_parameters); struct dijkstra *dijkstra; @@ -1571,7 +1572,6 @@ struct flow **minflow(const tal_t *ctx, struct gossmap *gossmap, struct amount_msat best_fee; double best_prob_success; - struct flow **best_flow_paths = NULL; /* TODO(eduardo): * Some MCF algorithms' performance depend on the size of maxflow. If we