We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 79aeff6 + a637734 commit 18c9debCopy full SHA for 18c9deb
src/wallet/rpcwallet.cpp
@@ -730,7 +730,8 @@ UniValue getbalance(const JSONRPCRequest& request)
730
if (request.params.size() == 0)
731
return ValueFromAmount(pwallet->GetBalance());
732
733
- const std::string* account = request.params[0].get_str() != "*" ? &request.params[0].get_str() : nullptr;
+ const std::string& account_param = request.params[0].get_str();
734
+ const std::string* account = account_param != "*" ? &account_param : nullptr;
735
736
int nMinDepth = 1;
737
if (request.params.size() > 1)
0 commit comments