forgot to initialize g->follow

This commit is contained in:
Sven M. Hallberg 2013-04-30 21:55:44 +02:00
parent 950bed8b8c
commit 2ce5d1129c

View file

@ -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;
}