Commit ee2f20df authored by Juri M. Vainonen's avatar Juri M. Vainonen Committed by antirez
Browse files

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

fixed a small bug that caused redis-cli to segfault when given single numeric parameter greater that zero.
parent 0dfc5578
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment