summaryrefslogtreecommitdiff
path: root/lib/isc/lex.c
diff options
context:
space:
mode:
authorInternet Software Consortium, Inc <@isc.org>2007-11-15 21:13:31 -0700
committerLaMont Jones <lamont@debian.org>2007-11-15 21:13:31 -0700
commit14844197c23f37b19e272cb34cb6f0f862598d36 (patch)
treed12bb00afd217ab6cfcc1aa9d2754ef8a693f69b /lib/isc/lex.c
parent10df5197b0b46b9f8e34b3855e9373c00c63b5a9 (diff)
downloadbind9-14844197c23f37b19e272cb34cb6f0f862598d36.tar.gz
9.5.0a7
Diffstat (limited to 'lib/isc/lex.c')
-rw-r--r--lib/isc/lex.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/isc/lex.c b/lib/isc/lex.c
index 8d5b4219..8749ed0b 100644
--- a/lib/isc/lex.c
+++ b/lib/isc/lex.c
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: lex.c,v 1.85 2007/06/19 23:47:17 tbox Exp $ */
+/* $Id: lex.c,v 1.86 2007/09/17 09:56:29 shane Exp $ */
/*! \file */
@@ -720,11 +720,7 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
state = lexstate_ccomment;
break;
case lexstate_eatline:
- if (c == EOF) {
- result = ISC_R_UNEXPECTEDEND;
- goto done;
- }
- if (c == '\n') {
+ if ((c == '\n') || (c == EOF)) {
no_comments = ISC_FALSE;
state = saved_state;
goto no_read;