mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
wallet/wallet.c: bind_null if (in->preimage)
This commit is contained in:
parent
580b8ba8a9
commit
5205de7b8e
@ -1124,6 +1124,8 @@ void wallet_htlc_save_in(struct wallet *wallet,
|
||||
|
||||
if (in->preimage)
|
||||
sqlite3_bind_preimage(stmt, 7, in->preimage);
|
||||
else
|
||||
sqlite3_bind_null(stmt, 7);
|
||||
sqlite3_bind_int(stmt, 8, in->hstate);
|
||||
|
||||
sqlite3_bind_blob(stmt, 9, &in->shared_secret,
|
||||
|
Loading…
Reference in New Issue
Block a user