summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2009-11-17 02:20:27 +0530
committerMukund Sivaraman <muks@banu.com>2009-11-17 02:20:27 +0530
commit45a56e468d18b61563c0c70bee18afbed712043c (patch)
treeb67e65c40144441790d0b402ae4c79cac3967c05 /src
parentd7fada25e540c62f03dff9d763f4b4d55303d051 (diff)
downloadtinyproxy-45a56e468d18b61563c0c70bee18afbed712043c.tar.gz
tinyproxy-45a56e468d18b61563c0c70bee18afbed712043c.zip
Remove excessive copying
Diffstat (limited to '')
-rw-r--r--src/conf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf.c b/src/conf.c
index 397cf45..7ab4329 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -384,8 +384,9 @@ static int set_string_arg (char **var, const char *line, regmatch_t * match)
if (!arg)
return -1;
- *var = safestrdup (arg);
- safefree (arg);
+
+ *var = arg;
+
return *var ? 0 : -1;
}