Formerly read.c.~60~
authorRoland McGrath <roland@redhat.com>
Wed, 2 Jun 1993 21:42:39 +0000 (21:42 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 2 Jun 1993 21:42:39 +0000 (21:42 +0000)
read.c

diff --git a/read.c b/read.c
index 6f0c2d4..9833498 100644 (file)
--- a/read.c
+++ b/read.c
@@ -155,7 +155,6 @@ read_all_makefiles (makefiles)
          d = d->next;
 
        /* Use the storage read_makefile allocates.  */
-       free (*makefiles);
        *makefiles = dep_name (d);
        ++num_makefiles;
        ++makefiles;
@@ -613,9 +612,9 @@ read_makefile (filename, type)
            }
 
          filenames = multi_glob (parse_file_seq (&p2, ':',
-                                                 sizeof (struct nameseq)),
-                                 sizeof (struct nameseq),
-                                 1);
+                                                 sizeof (struct nameseq),
+                                                 1),
+                                 sizeof (struct nameseq));
          if (*p2++ == '\0')
            makefile_fatal (filename, lineno, "missing separator");
          /* Is this a one-colon or two-colon entry?  */