diff options
author | Mukund Sivaraman <muks@banu.com> | 2009-09-23 07:29:58 +0530 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2009-09-27 08:09:23 +0530 |
commit | 3f0ccdef3cfd4d03c79bbead6c8b23bad87e3eee (patch) | |
tree | bc1f668ef88c7c58299bf6b1c19a9c2a3dc285f2 | |
parent | 0ecb6882694661cc45f82a9ebe5d9ae4a14186c0 (diff) | |
download | tinyproxy-3f0ccdef3cfd4d03c79bbead6c8b23bad87e3eee.tar.gz tinyproxy-3f0ccdef3cfd4d03c79bbead6c8b23bad87e3eee.zip |
strdup() the default stathost in config struct as it can be freed
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |