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