diff --git a/common/test/run-funding_tx.c b/common/test/run-funding_tx.c index 942cbd088..cf1822b37 100644 --- a/common/test/run-funding_tx.c +++ b/common/test/run-funding_tx.c @@ -177,6 +177,7 @@ int main(int argc, const char *argv[]) utxo.amount = AMOUNT_SAT(5000000000); utxo.is_p2sh = false; utxo.close_info = NULL; + utxo.scriptPubkey = NULL; funding_sat = AMOUNT_SAT(10000000); fee = AMOUNT_SAT(13920); diff --git a/lightningd/onchain_control.c b/lightningd/onchain_control.c index 32e8f346b..e4b767dca 100644 --- a/lightningd/onchain_control.c +++ b/lightningd/onchain_control.c @@ -334,6 +334,7 @@ static void onchain_add_utxo(struct channel *channel, const u8 *msg) u->close_info->channel_id = channel->dbid; u->close_info->peer_id = channel->peer->id; u->spendheight = NULL; + u->scriptPubkey = NULL; if (!fromwire_onchain_add_utxo( u, msg, &u->txid, &u->outnum, &u->close_info->commitment_point,