From 899c85ae67631f4f9f866a254ac5e149b86e5529 Mon Sep 17 00:00:00 2001 From: Madelyn Olson <34459052+madolson@users.noreply.github.com> Date: Tue, 9 Feb 2021 11:52:28 -0800 Subject: Moved most static strings into the shared structure (#8411) Moved most static strings into the shared structure --- src/acl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/acl.c') 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); } -- cgit v1.2.1