httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1198934 - /httpd/httpd/trunk/server/util.c
Date Mon, 07 Nov 2011 21:04:41 GMT
Author: sf
Date: Mon Nov  7 21:04:40 2011
New Revision: 1198934

URL: http://svn.apache.org/viewvc?rev=1198934&view=rev
Log:
No need to zero memory that we will overwrite anyway

Modified:
    httpd/httpd/trunk/server/util.c

Modified: httpd/httpd/trunk/server/util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util.c?rev=1198934&r1=1198933&r2=1198934&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util.c (original)
+++ httpd/httpd/trunk/server/util.c Mon Nov  7 21:04:40 2011
@@ -420,7 +420,7 @@ static apr_status_t regsub_core(apr_pool
         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)



Mime
View raw message