summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/variable.c b/variable.c
index 8d05198..46b691e 100644
--- a/variable.c
+++ b/variable.c
@@ -360,6 +360,7 @@ define_automatic_variables ()
/* Don't let SHELL come from the environment. */
if (*v->value == '\0' || (v->origin == o_env))
{
+ free (v->value);
v->origin = o_file;
v->value = savestring (default_shell, 7);
}