mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-06 21:51:14 +00:00
rpc/wallet: initialize nFeeRequired to avoid using garbage value on failure
This commit is contained in:
parent
3f826598a4
commit
a652ba6293
@ -343,7 +343,7 @@ static CTransactionRef SendMoney(interfaces::Chain::Lock& locked_chain, CWallet
|
||||
CScript scriptPubKey = GetScriptForDestination(address);
|
||||
|
||||
// Create and send the transaction
|
||||
CAmount nFeeRequired;
|
||||
CAmount nFeeRequired = 0;
|
||||
std::string strError;
|
||||
std::vector<CRecipient> vecSend;
|
||||
int nChangePosRet = -1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user