mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-19 18:39:10 +01:00
rpc/wallet: initialize nFeeRequired to avoid using garbage value on failure
This commit is contained in:
@@ -343,7 +343,7 @@ static CTransactionRef SendMoney(interfaces::Chain::Lock& locked_chain, CWallet
|
|||||||
CScript scriptPubKey = GetScriptForDestination(address);
|
CScript scriptPubKey = GetScriptForDestination(address);
|
||||||
|
|
||||||
// Create and send the transaction
|
// Create and send the transaction
|
||||||
CAmount nFeeRequired;
|
CAmount nFeeRequired = 0;
|
||||||
std::string strError;
|
std::string strError;
|
||||||
std::vector<CRecipient> vecSend;
|
std::vector<CRecipient> vecSend;
|
||||||
int nChangePosRet = -1;
|
int nChangePosRet = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user