summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-04-17 23:57:47 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-04-17 23:57:47 +0000
commitc54562ea65bf14ce1a19255902b9ff66e13c853a (patch)
treef0d055dc5a9ccc89d6b9156044af8e15a16c0e99 /usr.bin/make
parent2f2fb1e760558699e8241bfeb8ad746e650bdc9a (diff)
Initialize lineno and fname, see parse.c.
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/targ.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/make/targ.c b/usr.bin/make/targ.c
index 2dfec3b6527..a01597c21fa 100644
--- a/usr.bin/make/targ.c
+++ b/usr.bin/make/targ.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: targ.c,v 1.15 2000/03/26 16:21:33 espie Exp $ */
+/* $OpenBSD: targ.c,v 1.16 2000/04/17 23:57:46 espie Exp $ */
/* $NetBSD: targ.c,v 1.11 1997/02/20 16:51:50 christos Exp $ */
/*
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)targ.c 8.2 (Berkeley) 3/19/94";
#else
-static char *rcsid = "$OpenBSD: targ.c,v 1.15 2000/03/26 16:21:33 espie Exp $";
+static char *rcsid = "$OpenBSD: targ.c,v 1.16 2000/04/17 23:57:46 espie Exp $";
#endif
#endif /* not lint */
@@ -191,6 +191,8 @@ Targ_NewGN (name)
gn->successors = Lst_Init();
gn->preds = Lst_Init();
gn->context = Lst_Init();
+ gn->lineno = 0;
+ gn->fname = NULL;
gn->commands = Lst_Init();
gn->suffix = NULL;