X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/af4707a80c8ff5bbca34e271d3b33fd23135c203..3b5289a04c474ce66df2ef410e053795b1f0f1d2:/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;