Fixed first
[cascardo/grammar.git] / grammar.c
index ef21141..5f41708 100644 (file)
--- a/grammar.c
+++ b/grammar.c
@@ -159,9 +159,9 @@ grammar_t* grammar_new ()
 {
   grammar_t* grammar;
   grammar = g_malloc (sizeof (grammar_t*));
-  self->grammar = g_hash_table_new_full (symbol_hash, symbol_equal,
-                                        g_free,
-                                        (GDestroyNotify) rules_delete);
+  grammar->grammar = g_hash_table_new_full (symbol_hash, symbol_equal,
+                                           g_free,
+                                           (GDestroyNotify) rules_delete);
   return grammar;
 }