From 8c510a1c5d87548e17a936971e6b137ff01d2717 Mon Sep 17 00:00:00 2001 From: espie Date: Mon, 17 Apr 2000 23:57:46 +0000 Subject: [PATCH] Initialize lineno and fname, see parse.c. --- usr.bin/make/targ.c | 6 ++++-- 1 file 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; -- 2.20.1