]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Constify + save a few bytes in conf pool
authorChristophe Jaillet <jailletc36@apache.org>
Fri, 30 Oct 2015 21:13:07 +0000 (21:13 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Fri, 30 Oct 2015 21:13:07 +0000 (21:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1711553 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authn_anon.c

index 21e0da8560c2ff7fddfb1cbb1b8d0aac0da22c8c..82559bcc75e4081ec45706ab1bfa7d4d9bc5453a 100644 (file)
@@ -57,7 +57,7 @@
 #include "mod_auth.h"
 
 typedef struct anon_auth_user {
-    char *user;
+    const char *user;
     struct anon_auth_user *next;
 } anon_auth_user;
 
@@ -103,7 +103,7 @@ static const char *anon_set_string_slots(cmd_parms *cmd,
         else {
             first = conf->users;
             conf->users = apr_palloc(cmd->pool, sizeof(*conf->users));
-            conf->users->user = apr_pstrdup(cmd->pool, arg);
+            conf->users->user = arg;
             conf->users->next = first;
         }
     }