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

pull/764/head
Karl-Johan Alm 5 years ago
parent 3f826598a4
commit a652ba6293
No known key found for this signature in database
GPG Key ID: 57AF762DB3353322

@ -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…
Cancel
Save