fix #9894 backport

This commit is contained in:
Pasta 2018-12-30 16:05:45 -06:00 committed by Pasta
parent 07b50aefa2
commit 02f4661b3c
No known key found for this signature in database
GPG Key ID: 232CE2963BB66063

View File

@ -240,7 +240,7 @@ std::string CRPCTable::help(const std::string& strCommand, const std::string& st
BOOST_FOREACH(const PAIRTYPE(std::string, const CRPCCommand*)& command, vCommands)
{
const CRPCCommand *pcmd = command.second;
string strMethod = pcmd->name;
std::string strMethod = pcmd->name;
if ((strCommand != "" || pcmd->category == "hidden") && strMethod != strCommand)
continue;
try