Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
fa97ef34
Commit
fa97ef34
authored
Apr 23, 2019
by
git-hulk
Browse files
FIX: core dump in redis-benchmark when the `-r` is the last arg
parent
d044e33c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
fa97ef34
...
...
@@ -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")) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment