forgot to initialize g->follow
This commit is contained in:
parent
950bed8b8c
commit
2ce5d1129c
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ HCFGrammar *h_grammar_new(HAllocator *mm__)
|
|||
g->nts = h_hashset_new(g->arena, h_eq_ptr, h_hash_ptr);
|
||||
g->geneps = NULL;
|
||||
g->first = h_hashtable_new(g->arena, h_eq_ptr, h_hash_ptr);
|
||||
g->follow = h_hashtable_new(g->arena, h_eq_ptr, h_hash_ptr);
|
||||
|
||||
return g;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue