aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-02-07 22:36:38 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-02-07 22:36:38 +0200
commit00d797090ffd9dcc7b1a8fa729c542846ab0242b (patch)
tree2960fd09ce1460da938737de06e83289b5e47a15 /awkgram.c
parentd26dc534cf748c810d19b9daf4185b8dfaff1a9c (diff)
downloadegawk-00d797090ffd9dcc7b1a8fa729c542846ab0242b.tar.gz
egawk-00d797090ffd9dcc7b1a8fa729c542846ab0242b.tar.bz2
egawk-00d797090ffd9dcc7b1a8fa729c542846ab0242b.zip
Regex bug fix and token bug fix. See ChangeLog.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/awkgram.c b/awkgram.c
index 6a283d53..16733a59 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -4973,7 +4973,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 */