From 248cf569be09e1d7783926597dde0cd7c8b9ccfb Mon Sep 17 00:00:00 2001 From: Hartmut Brandt Date: Thu, 10 Mar 2005 15:30:09 +0000 Subject: [PATCH] Call ParseFinishLine() for the last line of a file too. --- usr.bin/make/parse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index bb365317652..6a82429358e 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -2534,6 +2534,9 @@ Parse_File(char *name, FILE *stream) free(line); } + /* finish the last line also (if there was one) */ + ParseFinishLine(); + /* * Reached EOF, but it may be just EOF of an include file... */