summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 608e707..4b0c2c2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -351,7 +351,7 @@ main (int argc, char **argv)
if (!config.stathost) {
log_message (LOG_INFO, "Setting stathost to \"%s\".",
TINYPROXY_STATHOST);
- config.stathost = TINYPROXY_STATHOST;
+ config.stathost = strdup (TINYPROXY_STATHOST);
}
if (!config.user) {