initialize eval_set to a proper copy of involved_set

This commit is contained in:
Sven M. Hallberg 2013-01-10 00:40:19 +01:00
parent ce88a3f49d
commit dffe47bf57
3 changed files with 22 additions and 1 deletions

View file

@ -103,7 +103,7 @@ HParseResult* grow(HParserCacheKey *k, HParseState *state, HRecursionHead *head)
HParseResult *old_res = old_cached->right->result;
// reset the eval_set of the head of the recursion at each beginning of growth
head->eval_set = head->involved_set; // BUG: this must be a copy
head->eval_set = h_slist_copy(head->involved_set);
HParseResult *tmp_res = perform_lowlevel_parse(state, k->parser);
if (tmp_res) {