httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1719189 - /httpd/httpd/trunk/server/config.c
Date Thu, 10 Dec 2015 20:03:37 GMT
Author: jailletc36
Date: Thu Dec 10 20:03:36 2015
New Revision: 1719189

URL: http://svn.apache.org/viewvc?rev=1719189&view=rev
Log:
Use 'apr_pstrmemdup' instead of 'apr_pstrndup' when applicable in order to save a few cycles.

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

Modified: httpd/httpd/trunk/server/config.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/config.c?rev=1719189&r1=1719188&r2=1719189&view=diff
==============================================================================
--- httpd/httpd/trunk/server/config.c (original)
+++ httpd/httpd/trunk/server/config.c Thu Dec 10 20:03:36 2015
@@ -1917,7 +1917,7 @@ static const char *process_resource_conf
     /* find the first part of the filename */
     rest = ap_strchr_c(fname, '/');
     if (rest) {
-        fname = apr_pstrndup(ptemp, fname, rest - fname);
+        fname = apr_pstrmemdup(ptemp, fname, rest - fname);
         rest++;
     }
 



Mime
View raw message