mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
check for return code in the else block
This commit is contained in:
parent
68222ddc7b
commit
30ec739c15
@ -42,6 +42,7 @@ int bitcoin_tx_add_output(struct bitcoin_tx *tx, const u8 *script,
|
||||
} else {
|
||||
ret = wally_tx_output_init_alloc(satoshis, script,
|
||||
tal_bytelen(script), &output);
|
||||
assert(ret == WALLY_OK);
|
||||
}
|
||||
ret = wally_tx_add_output(tx->wtx, output);
|
||||
assert(ret == WALLY_OK);
|
||||
|
Loading…
Reference in New Issue
Block a user