summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-10-23 19:57:55 +0000
committerRoland McGrath <roland@redhat.com>1992-10-23 19:57:55 +0000
commita485ade0849e67bb11fd50acf065e856cc9d3abb (patch)
treeee180ad903555b4b7df06bfa51df646bb376f765 /variable.c
parentb45d1ae3c2dac8a38b428899f18a0c6a1447357c (diff)
downloadgunmake-a485ade0849e67bb11fd50acf065e856cc9d3abb.tar.gz
Formerly variable.c.~12~
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);
}