mirror of
https://github.com/fluencelabs/redis
synced 2025-04-23 17:42:13 +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
319bb48c01
commit
aee7f99760
@ -693,7 +693,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