From: Roland McGrath Date: Thu, 10 Jun 1993 22:20:53 +0000 (+0000) Subject: Formerly read.c.~63~ X-Git-Tag: 3.70.2~230 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e176cf73a5c0733a8b6e95bdeb375e3a5fcaeee5;p=thirdparty%2Fmake.git Formerly read.c.~63~ --- diff --git a/read.c b/read.c index 7c9ffb1f..56cc96cb 100644 --- a/read.c +++ b/read.c @@ -1900,17 +1900,14 @@ multi_glob (chain, size) } else { - free (old->name); - free (old); - /* Find the end of the FOUND chain. */ - old = found; - while (old->next != 0) - old = old->next; + struct nameseq *f = found; + while (f->next != 0) + f = f->next; /* Attach the chain being built to the end of the FOUND chain, and make FOUND the new NEW chain. */ - old->next = new; + f->next = new; new = found; }