From f36bf76a154ef8ba9ea215592cddabc95acab781 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 5 May 2016 17:35:33 +0200 Subject: [PATCH] Revert "Fix commandCommand arity" This reverts commit 1189a4eae6d009fc0da8d50fd542ba1391542165. Actually this is wrong, the command can be called without args at all. --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 213c7821b..3e0ed8dfa 100644 --- a/src/server.c +++ b/src/server.c @@ -282,7 +282,7 @@ struct redisCommand redisCommandTable[] = { {"bitcount",bitcountCommand,-2,"r",0,NULL,1,1,1,0,0}, {"bitpos",bitposCommand,-3,"r",0,NULL,1,1,1,0,0}, {"wait",waitCommand,3,"s",0,NULL,0,0,0,0,0}, - {"command",commandCommand,1,"lt",0,NULL,0,0,0,0,0}, + {"command",commandCommand,0,"lt",0,NULL,0,0,0,0,0}, {"geoadd",geoaddCommand,-5,"wm",0,NULL,1,1,1,0,0}, {"georadius",georadiusCommand,-6,"w",0,NULL,1,1,1,0,0}, {"georadiusbymember",georadiusByMemberCommand,-5,"w",0,NULL,1,1,1,0,0},