]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly read.c.~63~
authorRoland McGrath <roland@redhat.com>
Thu, 10 Jun 1993 22:20:53 +0000 (22:20 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 10 Jun 1993 22:20:53 +0000 (22:20 +0000)
read.c

diff --git a/read.c b/read.c
index 7c9ffb1fb548f5fcb5a6b573f0d6210996046750..56cc96cba354cc6c89cc4aeda2ee876ef04c5040 100644 (file)
--- 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;
                      }