mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 07:31:35 +02:00
Merge pull request #11000
8e30662 wallet2: fix compiler warning (jpk68)
ACKs: jeffro256, selsta, tobtoht
This commit is contained in:
@@ -7167,7 +7167,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);
|
||||
|
||||
Reference in New Issue
Block a user