]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1857859 from trunk:
authorJoe Orton <jorton@apache.org>
Fri, 12 Jul 2019 08:17:39 +0000 (08:17 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 12 Jul 2019 08:17:39 +0000 (08:17 +0000)
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

server/core.c

index eacb54fecec2f7a709a47c448e98aebb05a1d574..02aadd50af2d61983e7fda4385714b3398e6d68e 100644 (file)
@@ -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*/