aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-06-06 18:44:53 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-06-06 18:44:53 +0300
commit4f758771937fcbd59b1fd2db017c4995513c3988 (patch)
treed76f68e51651c806c9c1bc2a6bf8332b020e6537 /dfa.c
parent2ec9d8362cb2d85891417c2ffd98ea74377b2c12 (diff)
parentaf38e153c3de3710b7e828f52869b446c73c808d (diff)
downloadegawk-4f758771937fcbd59b1fd2db017c4995513c3988.tar.gz
egawk-4f758771937fcbd59b1fd2db017c4995513c3988.tar.bz2
egawk-4f758771937fcbd59b1fd2db017c4995513c3988.zip
Merge branch 'gawk-4.1-stable'
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 f8dc8b24..2c5ce76c 100644
--- a/dfa.c
+++ b/dfa.c
@@ -3399,8 +3399,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;
@@ -3413,8 +3412,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;
}
}