From: Christophe Jaillet Date: Fri, 6 Nov 2015 21:10:57 +0000 (+0000) Subject: Save a few bytes in conf pool when processing 'AllowOverrideList'. X-Git-Tag: 2.5.0-alpha~2659 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95dc81b422fb27889e8c5be2a18b7a6033e64caa;p=apache Save a few bytes in conf pool when processing 'AllowOverrideList'. The 'override_list' table is allocated from the cmd->pool, just as all strings from argv[]. So there is no need to duplicate them. + some minor style issues git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1713040 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index 5602e5730a..b3f622db60 100644 --- a/server/core.c +++ b/server/core.c @@ -1805,7 +1805,7 @@ static const char *set_override_list(cmd_parms *cmd, void *d_, int argc, char *c d->override_list = apr_table_make(cmd->pool, argc); - for (i=0;iserver, @@ -1834,7 +1835,7 @@ static const char *set_override_list(cmd_parms *cmd, void *d_, int argc, char *c continue; } else { - apr_table_set(d->override_list, argv[i], "1"); + apr_table_setn(d->override_list, argv[i], "1"); } } }