mirror of
https://github.com/fluencelabs/redis
synced 2025-05-03 14:32:14 +00:00
fixed a small bug that caused redis-cli to segfault when given single numeric parameter greater that zero.
This commit is contained in:
parent
0dfc5578bf
commit
ee2f20dfde
@ -694,7 +694,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