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
2d450d13
Unverified
Commit
2d450d13
authored
Apr 26, 2019
by
Salvatore Sanfilippo
Committed by
GitHub
Apr 26, 2019
Browse files
Merge pull request #6039 from git-hulk/fix/benchmark-coredump-in-arguments
FIX: coredump in redis-benchmark
parents
162208f9
fa97ef34
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
2d450d13
...
@@ -1294,7 +1294,7 @@ int parseOptions(int argc, const char **argv) {
...
@@ -1294,7 +1294,7 @@ int parseOptions(int argc, const char **argv) {
if
(
*
p
<
'0'
||
*
p
>
'9'
)
goto
invalid
;
if
(
*
p
<
'0'
||
*
p
>
'9'
)
goto
invalid
;
}
}
config
.
randomkeys
=
1
;
config
.
randomkeys
=
1
;
config
.
randomkeys_keyspacelen
=
atoi
(
argv
[
++
i
]
);
config
.
randomkeys_keyspacelen
=
atoi
(
next
);
if
(
config
.
randomkeys_keyspacelen
<
0
)
if
(
config
.
randomkeys_keyspacelen
<
0
)
config
.
randomkeys_keyspacelen
=
0
;
config
.
randomkeys_keyspacelen
=
0
;
}
else
if
(
!
strcmp
(
argv
[
i
],
"-q"
))
{
}
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