aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-10-13 14:29:16 -0400
committerArnold D. Robbins <arnold@skeeve.com>2019-10-13 14:29:16 -0400
commit71f74c483838db2e18a7756469aa8c7edc76c33f (patch)
tree018b7830dbed25bf7e1b8145df751cbdccdc4f63 /io.c
parent8f330804cf3061aacf627ca63f6483207230d7b6 (diff)
downloadegawk-71f74c483838db2e18a7756469aa8c7edc76c33f.tar.gz
egawk-71f74c483838db2e18a7756469aa8c7edc76c33f.tar.bz2
egawk-71f74c483838db2e18a7756469aa8c7edc76c33f.zip
Fix assigning typed regex to FS and RS.
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 710314cc..4bf389b5 100644
--- a/io.c
+++ b/io.c
@@ -4066,7 +4066,7 @@ set_RS()
if (RS->stlen == 0) {
RS_is_null = true;
matchrec = rsnullscan;
- } else if (RS->stlen > 1 && ! do_traditional) {
+ } else if ((RS->stlen > 1 || (RS->flags & REGEX) != 0) && ! do_traditional) {
static bool warned = false;
RS_re[0] = make_regexp(RS->stptr, RS->stlen, false, true, true);