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) {