diff options
author | Madelyn Olson <34459052+madolson@users.noreply.github.com> | 2021-02-09 11:52:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 11:52:28 -0800 |
commit | 899c85ae67631f4f9f866a254ac5e149b86e5529 (patch) | |
tree | c5986f36c294b3ed45103c03489728cea7b734ef /src/acl.c | |
parent | 4554a49d32c5c0921f251262f2fbe02d7ac64b59 (diff) | |
download | redis-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.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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); } |