mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
FIX: core dump in redis-benchmark when the -r
is the last arg
This commit is contained in:
parent
d044e33c20
commit
fa97ef34ca
@ -1294,7 +1294,7 @@ int parseOptions(int argc, const char **argv) {
|
||||
if (*p < '0' || *p > '9') goto invalid;
|
||||
}
|
||||
config.randomkeys = 1;
|
||||
config.randomkeys_keyspacelen = atoi(argv[++i]);
|
||||
config.randomkeys_keyspacelen = atoi(next);
|
||||
if (config.randomkeys_keyspacelen < 0)
|
||||
config.randomkeys_keyspacelen = 0;
|
||||
} else if (!strcmp(argv[i],"-q")) {
|
||||
|
Loading…
Reference in New Issue
Block a user