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