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 22:33:01 +02:00
committed by antirez
parent 9286ecd767
commit 3a91aca033
+1 -1
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;