From: Christophe Jaillet Date: Wed, 1 Nov 2017 20:29:12 +0000 (+0000) Subject: Save a few bytes in the conf pool when handling 'ProxyHTMLDoctype' directive with... X-Git-Tag: 2.5.0-alpha~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71cc1a7e741f06ce26f342ba8de61110286189b9;p=apache Save a few bytes in the conf pool when handling 'ProxyHTMLDoctype' directive with a user defined FPI git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1813991 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_proxy_html.c b/modules/filters/mod_proxy_html.c index 62f2bee2e3..743f143780 100644 --- a/modules/filters/mod_proxy_html.c +++ b/modules/filters/mod_proxy_html.c @@ -1181,7 +1181,7 @@ static const char *set_doctype(cmd_parms *cmd, void *CFG, cfg->doctype = fpi_html5; } else { - cfg->doctype = apr_pstrdup(cmd->pool, t); + cfg->doctype = t; if (l && ((l[0] == 'x') || (l[0] == 'X'))) cfg->etag = xhtml_etag; else