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 2016/02/25 20:49:21 UTC

svn commit: r1732353 - /httpd/httpd/trunk/server/core.c

Author: jailletc36
Date: Thu Feb 25 19:49:21 2016
New Revision: 1732353

URL: http://svn.apache.org/viewvc?rev=1732353&view=rev
Log:
Save a few bytes in conf pool when parsing 'DocumentRoot' directive on some OS.

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

Modified: httpd/httpd/trunk/server/core.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core.c?rev=1732353&r1=1732352&r2=1732353&view=diff
==============================================================================
--- httpd/httpd/trunk/server/core.c (original)
+++ httpd/httpd/trunk/server/core.c Thu Feb 25 19:49:21 2016
@@ -1612,7 +1612,7 @@ static const char *set_document_root(cmd
     /* TODO: ap_configtestonly */
     if (apr_filepath_merge((char**)&conf->ap_document_root, NULL, arg,
                            APR_FILEPATH_TRUENAME, cmd->pool) != APR_SUCCESS
-        || !ap_is_directory(cmd->pool, arg)) {
+        || !ap_is_directory(cmd->temp_pool, arg)) {
         if (cmd->server->is_virtual) {
             ap_log_perror(APLOG_MARK, APLOG_STARTUP, 0,
                           cmd->pool, APLOGNO(00112)