mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-11 17:57:14 +01:00
rpc/wallet: initialize nFeeRequired to avoid using garbage value on failure
This commit is contained in:
parent
3f826598a4
commit
a652ba6293
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue