aboutsummaryrefslogtreecommitdiff
path: root/src/runscript.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runscript.c')
-rw-r--r--src/runscript.c5
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;