diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index f423e2dc20..864df167d5 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -385,7 +385,7 @@ static CTransactionRef SendMoney(interfaces::Chain::Lock& locked_chain, CWallet coin_control.ListSelected(vPresetInputs); // Create and send the transaction - CAmount nFeeRequired; + CAmount nFeeRequired = 0; std::string strError; std::vector vecSend; int nChangePosRet = -1;