diff --git a/common/psbt_open.c b/common/psbt_open.c index 1bc250cc7..fbd2e9c40 100644 --- a/common/psbt_open.c +++ b/common/psbt_open.c @@ -80,6 +80,8 @@ static const u8 *linearize_input(const tal_t *ctx, psbt->inputs[0].taproot_leaf_paths.num_items = 0; psbt->inputs[0].keypaths.num_items = 0; psbt->inputs[0].signatures.num_items = 0; + psbt->inputs[0].utxo = NULL; + psbt->inputs[0].witness_utxo = NULL; const u8 *bytes = psbt_get_bytes(ctx, psbt, &byte_len);