]> granicus.if.org Git - apache/commitdiff
No need to zero memory that we will overwrite anyway
authorStefan Fritsch <sf@apache.org>
Mon, 7 Nov 2011 21:04:40 +0000 (21:04 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 7 Nov 2011 21:04:40 +0000 (21:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1198934 13f79535-47bb-0310-9956-ffa450edef68

server/util.c

index 30ef06fb02b80cc7080cec1c657c83dd8d703457..10d3e35b20d0b65ec696018f44f61f42086b8139 100644 (file)
@@ -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)