From: Joe Orton Date: Fri, 12 Jul 2019 08:17:39 +0000 (+0000) Subject: Merge r1857859 from trunk: X-Git-Tag: 2.4.40~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcceb99e070e668533122459c44f12d749a0ebea;p=thirdparty%2Fapache%2Fhttpd.git Merge r1857859 from trunk: Fix a compilation error when GPROF is defined. Submitted by: jailletc36 Reviewed by: jfclere, icing, jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1862958 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index eacb54fecec..02aadd50af2 100644 --- a/server/core.c +++ b/server/core.c @@ -1520,7 +1520,7 @@ static const char *set_gprof_dir(cmd_parms *cmd, void *dummy, const char *arg) return err; } - conf->gprof_dir = arg; + conf->gprof_dir = apr_pstrdup(cmd->pool, arg); return NULL; } #endif /*GPROF*/