X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/0ace6ce463695df1ff4c7ba848554f4c9b822f36..a0189bbe75ce56af6c906f828a5f2c2dc86d6d28:/src/redis-cli.c diff --git a/src/redis-cli.c b/src/redis-cli.c index 328cd3df..b129df61 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -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;