build: fix compilation error on gcc 7.3.0

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2018-11-02 14:26:06 -07:00
committed by Rusty Russell
parent d5bb536ef0
commit ad1cf8b40c

View File

@@ -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;