diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-11-30 21:27:52 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-11-30 21:27:52 +0200 |
commit | 0dd8054d05d8286f2f7cbcf85456c6953a9b6146 (patch) | |
tree | a07249da09cb1eb4fd820d305fe70fc0f9911016 /dfa.c | |
parent | 295eef206ed65daa9801fc72875b34994b23ca01 (diff) | |
download | egawk-0dd8054d05d8286f2f7cbcf85456c6953a9b6146.tar.gz egawk-0dd8054d05d8286f2f7cbcf85456c6953a9b6146.tar.bz2 egawk-0dd8054d05d8286f2f7cbcf85456c6953a9b6146.zip |
Sync dfa with GNULIB.
Diffstat (limited to 'dfa.c')
-rw-r--r-- | dfa.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2652,6 +2652,12 @@ dfastate (state_num s, struct dfa *d, unsigned char uc, state_num trans[]) continue; if (j == CHARCLASS_WORDS) continue; + + /* If we have reset the bit that made us declare "matched", reset + that indicator, too. This is required to avoid an infinite loop + with this command: echo cx | LC_ALL=C grep -E 'c\b[x ]' */ + if (!tstbit (uc, matches)) + matched = false; } #ifdef DEBUG |