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
a74f2af6
Commit
a74f2af6
authored
Mar 22, 2009
by
antirez
Browse files
redis-cli now checks the arity of vararg commnads
parent
70003d28
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis-cli.c
View file @
a74f2af6
...
...
@@ -224,7 +224,7 @@ static int cliSendCommand(int argc, char **argv) {
}
if
((
rc
->
arity
>
0
&&
argc
!=
rc
->
arity
)
||
(
rc
->
arity
<
0
&&
argc
<
rc
->
arity
))
{
(
rc
->
arity
<
0
&&
argc
<
-
rc
->
arity
))
{
fprintf
(
stderr
,
"Wrong number of arguments for '%s'
\n
"
,
rc
->
name
);
return
1
;
}
...
...
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