diff options
author | steve <steve@FreeBSD.org> | 1996-09-25 02:55:49 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1996-09-25 02:55:49 +0000 |
commit | b9bf5744b2048badff0e858380fc88b26dbc80c3 (patch) | |
tree | 2556f28caa855357eaa911a518205e751a1cbf9b /usr.bin/make/parse.c | |
parent | 1c3a7303b4653188049b65a5f728be9158f4d0f6 (diff) | |
download | FreeBSD-src-b9bf5744b2048badff0e858380fc88b26dbc80c3.zip FreeBSD-src-b9bf5744b2048badff0e858380fc88b26dbc80c3.tar.gz |
Fix for PR# 1231, make(1) execution of ``.BEGIN'' does
not halt on error. Thanks to Wolfram for reminding me. ;)
Also remove a unnecessary test for c == '\n', since the
loop (in ParseSkipLine) will not terminate unless
c == '\n' || c == EOF, and the EOF case is already
explicted handled by a return statement.
Diffstat (limited to 'usr.bin/make/parse.c')
-rw-r--r-- | usr.bin/make/parse.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index 3bd2475..b241063 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -2041,8 +2041,6 @@ ParseSkipLine(skip) } lineno++; - if (c != '\n') - Buf_AddByte(buf, (Byte)'\0'); Buf_AddByte(buf, (Byte)'\0'); line = (char *)Buf_GetAll(buf, &lineLength); } while (skip == 1 && line[0] != '.'); |