Browse Source

wallet/wallet.c: Add missing bind_null

In order to address #338
ppa-0.6.1
Jan Sarenik 7 years ago
committed by Rusty Russell
parent
commit
0640ac23cb
  1. 2
      wallet/wallet.c

2
wallet/wallet.c

@ -1162,6 +1162,8 @@ void wallet_htlc_save_out(struct wallet *wallet,
sqlite3_bind_int(stmt, 3, DIRECTION_OUTGOING);
if (out->in)
sqlite3_bind_int64(stmt, 4, out->in->dbid);
else
sqlite3_bind_null(stmt, 4);
sqlite3_bind_int64(stmt, 5, out->msatoshi);
sqlite3_bind_int(stmt, 6, out->cltv_expiry);
sqlite3_bind_sha256(stmt, 7, &out->payment_hash);

Loading…
Cancel
Save