]> git.saurik.com Git - redis.git/blobdiff - src/redis-cli.c
libc neutral random function derived from a drand48() implementation added. Will...
[redis.git] / src / redis-cli.c
index 328cd3df207e1561e2e5f9bc3e517b75c94b9534..b129df612d04700b55547b8a889580ad5dec6dbe 100644 (file)
@@ -697,7 +697,7 @@ static void repl() {
                     int repeat, skipargs = 0;
 
                     repeat = atoi(argv[0]);
-                    if (repeat) {
+                    if (argc > 1 && repeat) {
                         skipargs = 1;
                     } else {
                         repeat = 1;