aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.c
diff options
context:
space:
mode:
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;