fix CIL maybe-uninitialized variable

This commit is contained in:
Lagrang3 2024-01-15 09:17:41 +01:00 committed by Rusty Russell
parent 102dce2515
commit 020a03fc3b

View File

@ -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