diff --git a/src/redis-cli.c b/src/redis-cli.c index 4a7d855d20ffe05ae88c9b43d46c8831ea0fe5fb..79a46d1119917bfb4f9d1a5b639e6a41335a7a6f 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -694,7 +694,7 @@ static void repl() { int repeat, skipargs = 0; repeat = atoi(argv[0]); - if (repeat) { + if (argc > 1 && repeat) { skipargs = 1; } else { repeat = 1;