summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-11-17 14:51:06 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-11-17 14:51:06 +0000
commit9f557da31e4928aba82e35c055b89f50dfa56623 (patch)
tree1236ac6bf0c2a736e111d369df93e2920ec71a06
parentff90aefc7dd1fb033a64bee4a31d38563c545592 (diff)
Night of the moronic coder, part 2.
repairs patterns such as divert(6) divert(7) undivert(6) divert(6) which are not that frequent, but were *quite* thoroughly broken...
-rw-r--r--usr.bin/m4/misc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/m4/misc.c b/usr.bin/m4/misc.c
index f458f036e36..7b15ad04578 100644
--- a/usr.bin/m4/misc.c
+++ b/usr.bin/m4/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.12 1999/09/14 08:35:17 espie Exp $ */
+/* $OpenBSD: misc.c,v 1.13 1999/11/17 14:51:05 espie Exp $ */
/* $NetBSD: misc.c,v 1.6 1995/09/28 05:37:41 tls Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: misc.c,v 1.12 1999/09/14 08:35:17 espie Exp $";
+static char rcsid[] = "$OpenBSD: misc.c,v 1.13 1999/11/17 14:51:05 espie Exp $";
#endif
#endif /* not lint */
@@ -243,6 +243,7 @@ getdiv(n)
while ((c = getc(outfile[n])) != EOF)
putc(c, active);
(void) fclose(outfile[n]);
+ outfile[n] = NULL;
}
void