diff options
author | Karl-Johan Alm <karljohan-alm@garage.co.jp> | 2020-03-09 10:20:30 +0900 |
---|---|---|
committer | Karl-Johan Alm <karljohan-alm@garage.co.jp> | 2020-03-09 10:20:41 +0900 |
commit | a652ba6293ef8d144935dc882b5f0003c987fa22 (patch) | |
tree | d6cc10bb2b861a228345adfe5217002c17c727f6 /src | |
parent | 3f826598a42dcc707b58224e94c394e30a42ceee (diff) |
rpc/wallet: initialize nFeeRequired to avoid using garbage value on failure
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index d9d92f8984..d4a1c475a7 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -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; |