summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohan Walles <johan.walles@gmail.com>2009-12-23 11:32:16 +0100
committerPaolo Bonzini <bonzini@gnu.org>2009-12-23 11:32:16 +0100
commitd09b0dd0a548f861ff3defbbc8b7f48343597ae1 (patch)
treefe2edea7de8d11e9c636a86aff87aceb18e972c6 /src
parent62b155de28da2bf54ee63eb56d8cde42f21f179d (diff)
downloadgrep-d09b0dd0a548f861ff3defbbc8b7f48343597ae1.tar.gz
Decrease epsclosure memory usage
Fixes bug 23321. * src/dfa.c (epsclosure): Make visited an array of char.
Diffstat (limited to 'src')
-rw-r--r--src/dfa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dfa.c b/src/dfa.c
index 47ec093e..7d97f30e 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -1569,10 +1569,10 @@ static void
epsclosure (position_set *s, struct dfa const *d)
{
int i, j;
- int *visited;
+ char *visited;
position p, old;
- CALLOC(visited, int, d->tindex);
+ CALLOC(visited, char, d->tindex);
for (i = 0; i < s->nelem; ++i)
if (d->tokens[s->elems[i].index] >= NOTCHAR