]> git.saurik.com Git - redis.git/blobdiff - src/t_zset.c
Query the archive to provide a complete KEYS list.
[redis.git] / src / t_zset.c
index f641d887cf4107b8cebe8d14b94df46642dd9dd8..f5cdec3e4bce2c55c2140941372b951f1526f051 100644 (file)
@@ -1497,7 +1497,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
     }
 
     /* test if the expected number of keys would overflow */
-    if (3+setnum > c->argc) {
+    if (setnum > c->argc-3) {
         addReply(c,shared.syntaxerr);
         return;
     }