From ad1cf8b40c203444519d30284743a43b786744c0 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 2 Nov 2018 14:26:06 -0700 Subject: [PATCH] build: fix compilation error on gcc 7.3.0 Signed-off-by: William Casarin --- onchaind/onchaind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onchaind/onchaind.c b/onchaind/onchaind.c index 26dc39a41..c5065bc97 100644 --- a/onchaind/onchaind.c +++ b/onchaind/onchaind.c @@ -1293,7 +1293,7 @@ static size_t resolve_our_htlc_ourcommit(struct tracked_output *out, const struct htlc_stub *htlcs, u8 **htlc_scripts) { - struct bitcoin_tx *tx; + struct bitcoin_tx *tx = NULL; secp256k1_ecdsa_signature localsig; size_t i;