Browse Source

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.
fixup-0.9.0
Christian Decker 4 years ago
parent
commit
aad62fce6e
  1. 1
      plugins/libplugin-pay.c

1
plugins/libplugin-pay.c

@ -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…
Cancel
Save