rpc/wallet: initialize nFeeRequired to avoid using garbage value on failure

This commit is contained in:
Karl-Johan Alm 2020-03-09 10:20:30 +09:00
parent 3f826598a4
commit a652ba6293
No known key found for this signature in database
GPG key ID: 57AF762DB3353322

View file

@ -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;