Skip to content

Commit

Permalink
plugins: fix more uninitialized vars in bookkeeper.
Browse files Browse the repository at this point in the history
Did a sweep to find any others, give this from sanitizer:

```
2024-08-09T18:06:45.1729472Z plugins/bkpr/recorder.c:2057:23: runtime error: load of value 190, which is not a valid value for type 'bool'
2024-08-09T18:06:45.1729877Z SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior plugins/bkpr/recorder.c:2057:23 in
```

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Aug 10, 2024
1 parent 359f1b8 commit d0c0c44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/bkpr/bookkeeper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1719,6 +1719,7 @@ static struct command_result *json_utxo_deposit(struct command *cmd, const char
ev->ignored = false;
ev->stealable = false;
ev->rebalance = false;
ev->splice_close = false;
ev->debit = AMOUNT_MSAT(0);
ev->output_value = ev->credit;
ev->spending_txid = NULL;
Expand Down Expand Up @@ -1797,6 +1798,7 @@ static struct command_result *json_utxo_spend(struct command *cmd, const char *b
ev->ignored = false;
ev->stealable = false;
ev->rebalance = false;
ev->splice_close = false;
ev->credit = AMOUNT_MSAT(0);
ev->output_value = ev->debit;
ev->payment_id = NULL;
Expand Down

0 comments on commit d0c0c44

Please sign in to comment.