From 875c466c63cd9c2d4c353c7c12636c5f2f01ac32 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Wed, 2 May 2012 17:42:24 -0700 Subject: [PATCH] Fix rpc commands with no arguments. --- src/CallRPC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CallRPC.cpp b/src/CallRPC.cpp index 6787727306..519b07f7e5 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];