From: Stefan Fritsch Date: Mon, 7 Nov 2011 21:04:40 +0000 (+0000) Subject: No need to zero memory that we will overwrite anyway X-Git-Tag: 2.3.15~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05eb254d1bee26592e16a156465486b1516a8849;p=apache No need to zero memory that we will overwrite anyway git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1198934 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util.c b/server/util.c index 30ef06fb02..10d3e35b20 100644 --- a/server/util.c +++ b/server/util.c @@ -420,7 +420,7 @@ static apr_status_t regsub_core(apr_pool_t *p, char **result, return APR_ENOMEM; if (!vb) { - *result = dst = apr_pcalloc(p, len + 1); + *result = dst = apr_palloc(p, len + 1); } else { if (vb->buf && vb->strlen == AP_VARBUF_UNKNOWN)