diff options
author | Roy Marples <roy@marples.name> | 2007-09-18 15:43:19 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-09-18 15:43:19 +0000 |
commit | 81c009e47d3a0779cee32e2a90e5a479bbaa790e (patch) | |
tree | 93aa10317db2ef70e8773e2168c5f1006c18d26e /src/runscript.c | |
parent | 9587d71df3c50b26e8e09a74c6d884a965dafafa (diff) |
Don't be an ass - don't free the 2nd list. Instead just empty it.
Diffstat (limited to 'src/runscript.c')
-rw-r--r-- | src/runscript.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |