From 2ce5d1129c88cc693a29779a1376cfcafb1761f0 Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Tue, 30 Apr 2013 21:55:44 +0200 Subject: [PATCH] forgot to initialize g->follow --- src/backends/ll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backends/ll.c b/src/backends/ll.c index d1cba42..86f6411 100644 --- a/src/backends/ll.c +++ b/src/backends/ll.c @@ -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; }