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:
Christian Decker 2020-07-22 17:47:59 +02:00 committed by Rusty Russell
parent 899a2e64b0
commit 6ada56ca7c

View File

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