From 6ada56ca7c7bb92a87ce2dcc0293b67f312ce628 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Wed, 22 Jul 2020 17:47:59 +0200 Subject: [PATCH] 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. --- plugins/libplugin-pay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/libplugin-pay.c b/plugins/libplugin-pay.c index d2a058f1c..b4f612cd1 100644 --- a/plugins/libplugin-pay.c +++ b/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) {