aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-08-15 21:21:51 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-08-15 21:21:51 +0300
commitff7ed27a5894eeda46db9d5e5b9743d1ba14ed5d (patch)
tree570b703958105587d929058d87ef904a51fd10a3 /dfa.c
parent41213074e5aa424296abecb51dd16607496cb69c (diff)
parent96cc85ac9ba06ab6b9edface5e4c34392a07a98d (diff)
downloadegawk-ff7ed27a5894eeda46db9d5e5b9743d1ba14ed5d.tar.gz
egawk-ff7ed27a5894eeda46db9d5e5b9743d1ba14ed5d.tar.bz2
egawk-ff7ed27a5894eeda46db9d5e5b9743d1ba14ed5d.zip
Merge branch 'gawk-4.1-stable' into feature/zOS-try2
Diffstat (limited to 'dfa.c')
-rw-r--r--dfa.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dfa.c b/dfa.c
index b0cec2ac..8c245347 100644
--- a/dfa.c
+++ b/dfa.c
@@ -3981,6 +3981,8 @@ dfamust (struct dfa const *d)
bool exact = false;
bool begline = false;
bool endline = false;
+ size_t rj;
+ struct dfamust *dm;
for (ri = 0; ri < d->tindex; ++ri)
{
@@ -4153,7 +4155,7 @@ dfamust (struct dfa const *d)
}
}
- size_t rj = ri + 2;
+ rj = ri + 2;
if (d->tokens[ri + 1] == CAT)
{
for (; rj < d->tindex - 1; rj += 2)
@@ -4184,7 +4186,7 @@ done:
if (!*result)
return NULL;
- struct dfamust *dm = xmalloc (sizeof *dm);
+ dm = xmalloc (sizeof *dm);
dm->exact = exact;
dm->begline = begline;
dm->endline = endline;