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
b67f0276
Commit
b67f0276
authored
Jul 09, 2018
by
antirez
Browse files
redis-cli: fix #4990 additional argument in help.
parent
18d65849
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
b67f0276
...
@@ -542,6 +542,7 @@ static void cliIntegrateHelp(void) {
...
@@ -542,6 +542,7 @@ static void cliIntegrateHelp(void) {
ch
->
name
=
new
->
argv
[
0
];
ch
->
name
=
new
->
argv
[
0
];
ch
->
params
=
sdsempty
();
ch
->
params
=
sdsempty
();
int
args
=
llabs
(
entry
->
element
[
1
]
->
integer
);
int
args
=
llabs
(
entry
->
element
[
1
]
->
integer
);
args
--
;
/* Remove the command name itself. */
if
(
entry
->
element
[
3
]
->
integer
==
1
)
{
if
(
entry
->
element
[
3
]
->
integer
==
1
)
{
ch
->
params
=
sdscat
(
ch
->
params
,
"key "
);
ch
->
params
=
sdscat
(
ch
->
params
,
"key "
);
args
--
;
args
--
;
...
...
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