diff options
| author | Karl-Johan Alm <[email protected]> | 2020-03-09 10:20:30 +0900 |
|---|---|---|
| committer | Karl-Johan Alm <[email protected]> | 2020-03-09 10:20:41 +0900 |
| commit | a652ba6293ef8d144935dc882b5f0003c987fa22 (patch) | |
| tree | d6cc10bb2b861a228345adfe5217002c17c727f6 | |
| parent | Merge #17972: tests: Add fuzzing harness for CKey and key related functions (diff) | |
| download | discoin-a652ba6293ef8d144935dc882b5f0003c987fa22.tar.xz discoin-a652ba6293ef8d144935dc882b5f0003c987fa22.zip | |
rpc/wallet: initialize nFeeRequired to avoid using garbage value on failure
| -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 d9d92f898..d4a1c475a 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; |