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
parent 0570fc34c9
commit 2d52506bc2

View File

@ -693,7 +693,7 @@ static void repl() {
int repeat, skipargs = 0;
repeat = atoi(argv[0]);
if (repeat) {
if (argc > 1 && repeat) {
skipargs = 1;
} else {
repeat = 1;