From 45a56e468d18b61563c0c70bee18afbed712043c Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Tue, 17 Nov 2009 02:20:27 +0530 Subject: Remove excessive copying --- src/conf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3