mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +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);
|
tal_t *this_ctx = tal(ctx,tal_t);
|
||||||
char *errmsg;
|
char *errmsg;
|
||||||
|
struct flow **best_flow_paths = NULL;
|
||||||
|
|
||||||
struct pay_parameters *params = tal(this_ctx,struct pay_parameters);
|
struct pay_parameters *params = tal(this_ctx,struct pay_parameters);
|
||||||
struct dijkstra *dijkstra;
|
struct dijkstra *dijkstra;
|
||||||
@ -1571,7 +1572,6 @@ struct flow **minflow(const tal_t *ctx, struct gossmap *gossmap,
|
|||||||
|
|
||||||
struct amount_msat best_fee;
|
struct amount_msat best_fee;
|
||||||
double best_prob_success;
|
double best_prob_success;
|
||||||
struct flow **best_flow_paths = NULL;
|
|
||||||
|
|
||||||
/* TODO(eduardo):
|
/* TODO(eduardo):
|
||||||
* Some MCF algorithms' performance depend on the size of maxflow. If we
|
* Some MCF algorithms' performance depend on the size of maxflow. If we
|
||||||
|
Loading…
Reference in New Issue
Block a user