summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-10-09 17:50:55 +0000
committerRoland McGrath <roland@redhat.com>1992-10-09 17:50:55 +0000
commit112dd3508d9e1c0cbe33d047e613d77dc248b2ff (patch)
tree5d0095bfbeadc6b64cea63f34bd1036e2827c7e5
parent46ccc784fe97444a0a7de1fe895965989a92bb97 (diff)
downloadgunmake-112dd3508d9e1c0cbe33d047e613d77dc248b2ff.tar.gz
Formerly variable.c.~11~
-rw-r--r--variable.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/variable.c b/variable.c
index aa3abd9..8d05198 100644
--- a/variable.c
+++ b/variable.c
@@ -88,6 +88,8 @@ define_variable_in_set (name, length, value, origin, recursive, set)
than this one, don't redefine it. */
if ((int) origin >= (int) v->origin)
{
+ if (v->value != 0)
+ free (v->value);
v->value = savestring (value, strlen (value));
v->origin = origin;
v->recursive = recursive;