aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-08-15 21:22:00 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-08-15 21:22:00 +0300
commite0c35d9b6a94412c5c64a90953a33440b67c8a03 (patch)
tree5c88a05bff91a6f47ceab435b25bd0481217bef4 /dfa.c
parent7399b38b7c519174eb29eada68c1e974f12b2e04 (diff)
parent96cc85ac9ba06ab6b9edface5e4c34392a07a98d (diff)
downloadegawk-e0c35d9b6a94412c5c64a90953a33440b67c8a03.tar.gz
egawk-e0c35d9b6a94412c5c64a90953a33440b67c8a03.tar.bz2
egawk-e0c35d9b6a94412c5c64a90953a33440b67c8a03.zip
Merge branch 'gawk-4.1-stable'
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 6cdcabd3..82910fb7 100644
--- a/dfa.c
+++ b/dfa.c
@@ -3969,6 +3969,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)
{
@@ -4141,7 +4143,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)
@@ -4172,7 +4174,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;