aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
Diffstat (limited to 'awkgram.y')
-rw-r--r--awkgram.y9
1 files changed, 8 insertions, 1 deletions
diff --git a/awkgram.y b/awkgram.y
index 3de7c511..01d0ebf8 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -2326,7 +2326,14 @@ next_sourcefile()
closefunc = one_line_close;
}
- assert(lexeof == TRUE);
+ /*
+ * This won't be true if there's an invalid character in
+ * the source file or source string (e.g., user typo).
+ * Previous versions of gawk did not core dump in such a
+ * case.
+ *
+ * assert(lexeof == TRUE);
+ */
lexeof = FALSE;
eof_warned = FALSE;
sourcefile->srclines = sourceline; /* total no of lines in current file */