summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2009-09-23 07:29:58 +0530
committerMukund Sivaraman <muks@banu.com>2009-09-27 08:09:23 +0530
commit3f0ccdef3cfd4d03c79bbead6c8b23bad87e3eee (patch)
treebc1f668ef88c7c58299bf6b1c19a9c2a3dc285f2 /src
parent0ecb6882694661cc45f82a9ebe5d9ae4a14186c0 (diff)
downloadtinyproxy-3f0ccdef3cfd4d03c79bbead6c8b23bad87e3eee.tar.gz
tinyproxy-3f0ccdef3cfd4d03c79bbead6c8b23bad87e3eee.zip
strdup() the default stathost in config struct as it can be freed
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) {