You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2015/12/10 21:03:37 UTC
svn commit: r1719189 - /httpd/httpd/trunk/server/config.c
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++;
}