Browse Source

wallet/wallet.c: bind_null if (in->preimage)

ppa-0.6.1
Jan Sarenik 7 years ago
committed by Rusty Russell
parent
commit
5205de7b8e
  1. 2
      wallet/wallet.c

2
wallet/wallet.c

@ -1124,6 +1124,8 @@ void wallet_htlc_save_in(struct wallet *wallet,
if (in->preimage) if (in->preimage)
sqlite3_bind_preimage(stmt, 7, in->preimage); sqlite3_bind_preimage(stmt, 7, in->preimage);
else
sqlite3_bind_null(stmt, 7);
sqlite3_bind_int(stmt, 8, in->hstate); sqlite3_bind_int(stmt, 8, in->hstate);
sqlite3_bind_blob(stmt, 9, &in->shared_secret, sqlite3_bind_blob(stmt, 9, &in->shared_secret,

Loading…
Cancel
Save