diff --git a/src/CallRPC.cpp b/src/CallRPC.cpp index 678772730..519b07f7e 100644 --- a/src/CallRPC.cpp +++ b/src/CallRPC.cpp @@ -52,7 +52,7 @@ int commandLineRPC(const std::vector& vCmd) int nRet = 0; try { - if (vCmd.size() < 2) return 1; + if (!vCmd.size()) return 1; std::string strMethod = vCmd[0];