Skip to content

Commit

Permalink
fix CIL maybe-uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Lagrang3 committed Jan 15, 2024
1 parent 478922c commit 241afc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/renepay/mcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 241afc3

Please sign in to comment.