]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Save a few bytes in conf pool when parsing 'DocumentRoot' directive on some OS.
authorChristophe Jaillet <jailletc36@apache.org>
Thu, 25 Feb 2016 19:49:21 +0000 (19:49 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Thu, 25 Feb 2016 19:49:21 +0000 (19:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1732353 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 717376e26836e817bfd8da079f812ebcd1547fd8..0300e6479e705268bcc9ab134c9a0b1f3fa09cb3 100644 (file)
@@ -1612,7 +1612,7 @@ static const char *set_document_root(cmd_parms *cmd, void *dummy,
     /* 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)