Browse Source

wallet/wallet.c: bind_null if (chan->scid)

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

2
wallet/wallet.c

@ -888,6 +888,8 @@ void wallet_channel_save(struct wallet *w, struct channel *chan)
sqlite3_bind_int64(stmt, 1, chan->their_shachain.id);
if (chan->scid)
sqlite3_bind_short_channel_id(stmt, 2, chan->scid);
else
sqlite3_bind_null(stmt, 2);
sqlite3_bind_int(stmt, 3, chan->state);
sqlite3_bind_int(stmt, 4, chan->funder);
sqlite3_bind_int(stmt, 5, chan->channel_flags);

Loading…
Cancel
Save