fixed a small bug that caused redis-cli to segfault when given single numeric parameter greater that zero.

This commit is contained in:
Juri M. Vainonen
2011-09-21 23:22:14 +03:00
committed by antirez
parent 9286ecd767
commit 3a91aca033

View File

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