aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-06-06 18:44:26 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-06-06 18:44:26 +0300
commitaf38e153c3de3710b7e828f52869b446c73c808d (patch)
treecdcbdb26fb5960f65c18a26d1c77bc7ab1d38df4 /dfa.c
parent9867841a4767347cd89c9fd0127db3c7eaf943e6 (diff)
downloadegawk-af38e153c3de3710b7e828f52869b446c73c808d.tar.gz
egawk-af38e153c3de3710b7e828f52869b446c73c808d.tar.bz2
egawk-af38e153c3de3710b7e828f52869b446c73c808d.zip
Sync dfa.c with GNU grep.
Diffstat (limited to 'dfa.c')
-rw-r--r--dfa.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/dfa.c b/dfa.c
index 3156e5e7..a41914e0 100644
--- a/dfa.c
+++ b/dfa.c
@@ -3411,8 +3411,7 @@ dfaexec_main (struct dfa *d, char const *begin, char *end, bool allow_nl,
s = allow_nl ? d->newlines[s1] : 0;
}
-
- if (d->fails[s])
+ else if (d->fails[s])
{
if (d->success[s] & sbit[*p])
goto done;
@@ -3425,8 +3424,7 @@ dfaexec_main (struct dfa *d, char const *begin, char *end, bool allow_nl,
}
else
{
- if (!d->trans[s])
- build_state (s, d);
+ build_state (s, d);
trans = d->trans;
}
}