diff options
author | 2005-11-27 13:00:23 -0500 | |
---|---|---|
committer | 2005-11-27 17:40:51 -0800 | |
commit | 7be06dc237e6761fedb66b5426c3eacb542df9aa (patch) | |
tree | d7ed461cec85e26d1017691c0ba5802de9e3f80d /pre-process.c | |
parent | [PATCH] Doh... (diff) | |
download | sparse-7be06dc237e6761fedb66b5426c3eacb542df9aa.tar.gz sparse-7be06dc237e6761fedb66b5426c3eacb542df9aa.tar.bz2 sparse-7be06dc237e6761fedb66b5426c3eacb542df9aa.zip |
[PATCH] check for !token in handle_preprocessor_line() should be eof_token(token)
IOW, handling of #<newline> had been broken since way back...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'pre-process.c')
-rw-r--r-- | pre-process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pre-process.c b/pre-process.c index 47ef7ae..af77666 100644 --- a/pre-process.c +++ b/pre-process.c @@ -1606,7 +1606,7 @@ static void handle_preprocessor_line(struct stream *stream, struct token **line, struct token *token = start->next; int is_normal = 1; - if (!token) + if (eof_token(token)) return; if (token_type(token) == TOKEN_IDENT) { |