wallet: Avoid potential use of unitialized value bnb_used in CWallet::CreateTransaction(...)
Github-Pull: #13546
Rebased-From: a23a7f60aa
This commit is contained in:
parent
96f15e8bb3
commit
91fa15aaeb
1 changed files with 2 additions and 0 deletions
|
@ -2846,6 +2846,8 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CTransac
|
|||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
bnb_used = false;
|
||||
}
|
||||
|
||||
const CAmount nChange = nValueIn - nValueToSelect;
|
||||
|
|
Loading…
Reference in a new issue