mirror of
https://github.com/redis/redis.git
synced 2026-02-03 20:39:54 -05:00
redis-cli now checks the arity of vararg commnads
This commit is contained in:
parent
70003d28b8
commit
a74f2af61c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue