Merge pull request #97 from jvain/redis-cli
redis-cli segfaults with single numeric argument greater than zero
This commit is contained in:
commit
7c748c061e
@ -697,7 +697,7 @@ static void repl() {
|
|||||||
int repeat, skipargs = 0;
|
int repeat, skipargs = 0;
|
||||||
|
|
||||||
repeat = atoi(argv[0]);
|
repeat = atoi(argv[0]);
|
||||||
if (repeat) {
|
if (argc > 1 && repeat) {
|
||||||
skipargs = 1;
|
skipargs = 1;
|
||||||
} else {
|
} else {
|
||||||
repeat = 1;
|
repeat = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user