Merge pull request #97 from jvain/redis-cli

redis-cli segfaults with single numeric argument greater than zero
This commit is contained in:
Salvatore Sanfilippo 2011-09-21 13:32:24 -07:00
commit 7c748c061e

View 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;