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

server/core.c

index c7cc97538ab4c2cbc014e9ed26e4cd06b7d897c9..717376e26836e817bfd8da079f812ebcd1547fd8 100644 (file)
@@ -3056,7 +3056,7 @@ static const char *set_runtime_dir(cmd_parms *cmd, void *dummy, const char *arg)
     }
 
     if ((apr_filepath_merge((char**)&ap_runtime_dir, NULL,
-                            ap_server_root_relative(cmd->pool, arg),
+                            ap_server_root_relative(cmd->temp_pool, arg),
                             APR_FILEPATH_TRUENAME, cmd->pool) != APR_SUCCESS)
         || !ap_is_directory(cmd->temp_pool, ap_runtime_dir)) {
         return "DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot";