summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxhe <xw897002528@gmail.com>2020-12-24 17:03:53 +0800
committerGitHub <noreply@github.com>2020-12-24 17:03:53 +0800
commit98f39a37fb14f2b1c1965de143011402728dafbc (patch)
tree6ec395369095839d4e2632ee5c050ab54e1ff6b4
parent723b4a15a34ce25490882f40ef51b24a5b61304c (diff)
downloadredis-98f39a37fb14f2b1c1965de143011402728dafbc.tar.gz
simplify
Co-authored-by: Oran Agra <oran@redislabs.com>
-rw-r--r--src/networking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/networking.c b/src/networking.c
index 32ffb3ce8..e29256488 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -2769,7 +2769,7 @@ void helloCommand(client *c) {
return;
}
- for (int j = !ver ? 1 : 2; j < c->argc; j++) {
+ for (int j = next_arg; j < c->argc; j++) {
int moreargs = (c->argc-1) - j;
const char *opt = c->argv[j]->ptr;
if (!strcasecmp(opt,"AUTH") && moreargs >= 2) {