mirror of
http://github.com/valkey-io/valkey
synced 2024-11-21 16:46:15 +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;
|
||||
|
||||
repeat = atoi(argv[0]);
|
||||
if (repeat) {
|
||||
if (argc > 1 && repeat) {
|
||||
skipargs = 1;
|
||||
} else {
|
||||
repeat = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user