mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-06 16:36:57 +02:00
wallet: Avoid potential use of unitialized value bnb_used in CWallet::CreateTransaction(...)
This commit is contained in:
@ -2844,6 +2844,8 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CTransac
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
bnb_used = false;
|
||||
}
|
||||
|
||||
const CAmount nChange = nValueIn - nValueToSelect;
|
||||
|
Reference in New Issue
Block a user