diff options
author | Mukund Sivaraman <muks@banu.com> | 2009-11-17 02:20:27 +0530 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2009-11-17 02:20:27 +0530 |
commit | 45a56e468d18b61563c0c70bee18afbed712043c (patch) | |
tree | b67e65c40144441790d0b402ae4c79cac3967c05 | |
parent | d7fada25e540c62f03dff9d763f4b4d55303d051 (diff) | |
download | tinyproxy-45a56e468d18b61563c0c70bee18afbed712043c.tar.gz tinyproxy-45a56e468d18b61563c0c70bee18afbed712043c.zip |
Remove excessive copying
Diffstat (limited to '')
-rw-r--r-- | src/conf.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |