aboutsummaryrefslogtreecommitdiff
path: root/treexpr.c
diff options
context:
space:
mode:
Diffstat (limited to 'treexpr.c')
-rw-r--r--treexpr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/treexpr.c b/treexpr.c
index 3b6a836..99d4ff6 100644
--- a/treexpr.c
+++ b/treexpr.c
@@ -990,6 +990,7 @@ int tree_process( struct machine *m, xmlNodePtr node )
m->next_state = zalloc( N( m->next_state, m->states ) * sizeof( *m->next_state ));
// our inital current state is E(start)
+ memset( m->cur_state, 0, N( m->cur_state, m->states ) * sizeof( *m->cur_state ));
OR( m->cur_state, m->E[m->start->num], m->states );
// main loop, terminate when we run out of input or when there's no states in the cur_state bitmask