]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly variable.c.~11~
authorRoland McGrath <roland@redhat.com>
Fri, 9 Oct 1992 17:50:55 +0000 (17:50 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 9 Oct 1992 17:50:55 +0000 (17:50 +0000)
variable.c

index aa3abd9b004e279e45356dfa293720279b1e459d..8d051983a1682048968b7e66488d1d146dc6bb58 100644 (file)
@@ -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;