From d0c0c4480ac080b0c4074bf37f488a751b3f296a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 10 Aug 2024 10:43:51 +0930 Subject: [PATCH] plugins: fix more uninitialized vars in bookkeeper. 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 --- plugins/bkpr/bookkeeper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/bkpr/bookkeeper.c b/plugins/bkpr/bookkeeper.c index 98599ead08ae..13c030795f59 100644 --- a/plugins/bkpr/bookkeeper.c +++ b/plugins/bkpr/bookkeeper.c @@ -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; @@ -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;