From: Christophe Jaillet Date: Sat, 20 Apr 2019 07:21:03 +0000 (+0000) Subject: Fix a compilation error when GPROF is defined. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e9339aadf40c523644fb0cffe804e564531940b;p=apache Fix a compilation error when GPROF is defined. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1857859 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index 2ce5af70e2..96709f207a 100644 --- a/server/core.c +++ b/server/core.c @@ -1633,7 +1633,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*/