]> granicus.if.org Git - apache/commitdiff
Fix a compilation error when GPROF is defined.
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 20 Apr 2019 07:21:03 +0000 (07:21 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 20 Apr 2019 07:21:03 +0000 (07:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1857859 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 2ce5af70e2ced1e4af2360bcff7c1cec900d8a89..96709f207a3f99553a133c9771f14e81b77c6bc0 100644 (file)
@@ -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*/