summaryrefslogtreecommitdiff
path: root/src/acl.c
diff options
context:
space:
mode:
authorMadelyn Olson <34459052+madolson@users.noreply.github.com>2021-02-09 11:52:28 -0800
committerGitHub <noreply@github.com>2021-02-09 11:52:28 -0800
commit899c85ae67631f4f9f866a254ac5e149b86e5529 (patch)
treec5986f36c294b3ed45103c03489728cea7b734ef /src/acl.c
parent4554a49d32c5c0921f251262f2fbe02d7ac64b59 (diff)
downloadredis-899c85ae67631f4f9f866a254ac5e149b86e5529.tar.gz
Moved most static strings into the shared structure (#8411)
Moved most static strings into the shared structure
Diffstat (limited to 'src/acl.c')
-rw-r--r--src/acl.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/acl.c b/src/acl.c
index 1f07c292f..74210ebce 100644
--- a/src/acl.c
+++ b/src/acl.c
@@ -2253,7 +2253,7 @@ void authCommand(client *c) {
return;
}
- username = createStringObject("default",7);
+ username = shared.default_username;
password = c->argv[1];
} else {
username = c->argv[1];
@@ -2265,9 +2265,5 @@ void authCommand(client *c) {
} else {
addReplyError(c,"-WRONGPASS invalid username-password pair or user is disabled.");
}
-
- /* Free the "default" string object we created for the two
- * arguments form. */
- if (c->argc == 2) decrRefCount(username);
}