summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-06-02 21:42:39 +0000
committerRoland McGrath <roland@redhat.com>1993-06-02 21:42:39 +0000
commit638267683891b0e13ceaa9d3110aec0181ba3033 (patch)
tree6a0c5038cdb6f1aa5214d7ed5b45881dd0845e64
parent14f2b39dff8c4157fd18fb64989b23eed8ad73c6 (diff)
downloadgunmake-638267683891b0e13ceaa9d3110aec0181ba3033.tar.gz
Formerly read.c.~60~
-rw-r--r--read.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/read.c b/read.c
index 6f0c2d4..9833498 100644
--- 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? */