From 81c009e47d3a0779cee32e2a90e5a479bbaa790e Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 18 Sep 2007 15:43:19 +0000 Subject: Don't be an ass - don't free the 2nd list. Instead just empty it. --- src/runscript.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/runscript.c') diff --git a/src/runscript.c b/src/runscript.c index f7d49fb7..d80d1b81 100644 --- a/src/runscript.c +++ b/src/runscript.c @@ -1048,8 +1048,11 @@ int runscript (int argc, char **argv) if ((softlevel = getenv ("RC_SOFTLEVEL")) == NULL) { /* Ensure our environment is pure Also, add our configuration to it */ + tmplist = rc_make_env(); env = rc_filter_env (); - rc_strlist_join (&env, rc_make_env ()); + rc_strlist_join (&env, tmplist); + rc_strlist_free (tmplist); + tmplist = NULL; if (env) { char *p; -- cgit v1.2.3