From 8e30662486b6156b687d07ae6bd06eb8222f1f72 Mon Sep 17 00:00:00 2001 From: jpk68 Date: Wed, 29 Jul 2026 14:14:00 -0400 Subject: [PATCH] wallet2: fix compiler warning --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 19ba99172..244b364e7 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -7165,7 +7165,7 @@ uint64_t wallet2::unlocked_balance_all(bool strict, uint64_t *blocks_to_unlock, *time_to_unlock = 0; for (uint32_t index_major = 0; index_major < get_num_subaddress_accounts(); ++index_major) { - uint64_t local_blocks_to_unlock, local_time_to_unlock; + uint64_t local_blocks_to_unlock = 0, local_time_to_unlock = 0; r += unlocked_balance(index_major, strict, blocks_to_unlock ? &local_blocks_to_unlock : NULL, time_to_unlock ? &local_time_to_unlock : NULL); if (blocks_to_unlock) *blocks_to_unlock = std::max(*blocks_to_unlock, local_blocks_to_unlock);