From: Roland McGrath Date: Fri, 9 Oct 1992 17:50:55 +0000 (+0000) Subject: Formerly variable.c.~11~ X-Git-Tag: 3.70.2~584 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=112dd3508d9e1c0cbe33d047e613d77dc248b2ff;p=thirdparty%2Fmake.git Formerly variable.c.~11~ --- diff --git a/variable.c b/variable.c index aa3abd9b..8d051983 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;