From: Christophe Jaillet Date: Tue, 21 Mar 2017 23:05:52 +0000 (+0000) Subject: Save a few bytes in the conf pool. X-Git-Tag: 2.5.0-alpha~540 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=efcbe8209591acb95265f92a25fd083632e4d1b1;p=apache Save a few bytes in the conf pool. 'push_item' and 'add_alt' already duplicate their parameters, so we can safely use the temp_pool here. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788032 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index eb5a4f78a4..9473a87e4d 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -231,7 +231,7 @@ static const char *add_alt(cmd_parms *cmd, void *d, const char *alt, } } if (cmd->info == BY_ENCODING) { - char *tmp = apr_pstrdup(cmd->pool, to); + char *tmp = apr_pstrdup(cmd->temp_pool, to); ap_str_tolower(tmp); to = tmp; } @@ -244,7 +244,7 @@ static const char *add_alt(cmd_parms *cmd, void *d, const char *alt, static const char *add_icon(cmd_parms *cmd, void *d, const char *icon, const char *to) { - char *iconbak = apr_pstrdup(cmd->pool, icon); + char *iconbak = apr_pstrdup(cmd->temp_pool, icon); if (icon[0] == '(') { char *alt; @@ -253,7 +253,7 @@ static const char *add_icon(cmd_parms *cmd, void *d, const char *icon, if (cl == NULL) { return "missing closing paren"; } - alt = ap_getword_nc(cmd->pool, &iconbak, ','); + alt = ap_getword_nc(cmd->temp_pool, &iconbak, ','); *cl = '\0'; /* Lose closing paren */ add_alt(cmd, d, &alt[1], to); } @@ -263,7 +263,7 @@ static const char *add_icon(cmd_parms *cmd, void *d, const char *icon, } } if (cmd->info == BY_ENCODING) { - char *tmp = apr_pstrdup(cmd->pool, to); + char *tmp = apr_pstrdup(cmd->temp_pool, to); ap_str_tolower(tmp); to = tmp; }