From: Christophe Jaillet Date: Thu, 25 Feb 2016 06:51:13 +0000 (+0000) Subject: Save a few bytes in conf pool when parsing 'DefaultRuntimeDir' directive. X-Git-Tag: 2.5.0-alpha~2018 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f115c49281f996a96e04f25e92e642dedbbd7a0b;p=thirdparty%2Fapache%2Fhttpd.git Save a few bytes in conf pool when parsing 'DefaultRuntimeDir' directive. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1732252 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index c7cc97538ab..717376e2683 100644 --- a/server/core.c +++ b/server/core.c @@ -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";