]> git.saurik.com Git - redis.git/blobdiff - redis.c
Unified handling of empty queries with normal queries.
[redis.git] / redis.c
diff --git a/redis.c b/redis.c
index 61bb81cfa71f523ecdc0bbff354d46b6d42005d6..f0b69edd946517b4485e22189c9dfaa5aafab341 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -1877,12 +1877,6 @@ again:
             sdsupdatelen(query);
 
             /* Now we can split the query in arguments */
-            if (sdslen(query) == 0) {
-                /* Ignore empty query */
-                sdsfree(query);
-                if (sdslen(c->querybuf)) goto again;
-                return;
-            }
             argv = sdssplitlen(query,sdslen(query)," ",1,&argc);
             sdsfree(query);