diff options
author | 2000-04-17 23:57:46 +0000 | |
---|---|---|
committer | 2000-04-17 23:57:46 +0000 | |
commit | 8c510a1c5d87548e17a936971e6b137ff01d2717 (patch) | |
tree | 0842185055f2f2e5594a34273b75dc6eb93d7431 | |
parent | Record location in target node as well. (diff) | |
download | wireguard-openbsd-8c510a1c5d87548e17a936971e6b137ff01d2717.tar.xz wireguard-openbsd-8c510a1c5d87548e17a936971e6b137ff01d2717.zip |
Initialize lineno and fname, see parse.c.
-rw-r--r-- | usr.bin/make/targ.c | 6 |
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; |