mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 13:25:43 +01:00
paymod: Always initialize p->route
We're using it in a couple of places to see if we even performed the attempt, so we need to make sure it's initialized.
This commit is contained in:
parent
899a2e64b0
commit
6ada56ca7c
@ -25,6 +25,7 @@ struct payment *payment_new(tal_t *ctx, struct command *cmd,
|
||||
p->failreason = NULL;
|
||||
p->getroute->riskfactorppm = 10000000;
|
||||
p->abort = false;
|
||||
p->route = NULL;
|
||||
|
||||
/* Copy over the relevant pieces of information. */
|
||||
if (parent != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user