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.
1 parent 02d9f50 commit a637734Copy full SHA for a637734
src/wallet/rpcwallet.cpp
@@ -729,7 +729,8 @@ UniValue getbalance(const JSONRPCRequest& request)
729
if (request.params.size() == 0)
730
return ValueFromAmount(pwallet->GetBalance());
731
732
- 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();
733
+ const std::string* account = account_param != "*" ? &account_param : nullptr;
734
735
int nMinDepth = 1;
736
if (request.params.size() > 1)
0 commit comments