mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
rpc/wallet: initialize nFeeRequired to avoid using garbage value on failure
This commit is contained in:
parent
3f826598a4
commit
a652ba6293
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue