diff options
| author | christos <christos@NetBSD.org> | 1995-02-08 04:36:41 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1995-02-08 04:36:41 +0000 |
| commit | f222a602cffe3fa29f29d803b1f6724cdd0b7b97 (patch) | |
| tree | aa02e461abb1990216f6e47a427c2228194f2642 /usr.bin/make/parse.c | |
| parent | cce0e858f9cdb822bccf2b67c72f6ed41c2bd713 (diff) | |
Fixed so that orphan tabs are ignored. Should close PR760.
Diffstat (limited to 'usr.bin/make/parse.c')
| -rw-r--r-- | usr.bin/make/parse.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index aeaa56cef52..0927fbb61fc 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -38,7 +38,7 @@ #ifndef lint /* from: static char sccsid[] = "@(#)parse.c 5.18 (Berkeley) 2/19/91"; */ -static char *rcsid = "$Id: parse.c,v 1.12 1995/01/06 19:57:31 christos Exp $"; +static char *rcsid = "$Id: parse.c,v 1.13 1995/02/08 04:36:41 christos Exp $"; #endif /* not lint */ /*- @@ -2404,8 +2404,9 @@ Parse_File(name, stream) goto nextLine; } } - if (*line == '#') { - /* If we're this far, the line must be a comment. */ + if (*line == '#' || *line == '\0') { + /* If we're this far, the line must be a comment. + (Empty lines are ignored as well) */ goto nextLine; } |
