mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
fix CIL maybe-uninitialized variable
This commit is contained in:
parent
102dce2515
commit
020a03fc3b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user