Fix rpc commands with no arguments.

This commit is contained in:
Arthur Britto
2012-05-02 17:42:24 -07:00
parent 3257d32f0e
commit 875c466c63

View File

@@ -52,7 +52,7 @@ int commandLineRPC(const std::vector<std::string>& vCmd)
int nRet = 0;
try
{
if (vCmd.size() < 2) return 1;
if (!vCmd.size()) return 1;
std::string strMethod = vCmd[0];