]> git.saurik.com Git - bison.git/commitdiff
* src/reader.c (symbol_list_new): Be sure to initialize all the
authorAkim Demaille <akim@epita.fr>
Thu, 27 Dec 2001 18:05:42 +0000 (18:05 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 27 Dec 2001 18:05:42 +0000 (18:05 +0000)
fields.

ChangeLog
src/reader.c

index e8f48a0be3e1f4380ef48e1d5154ca0b700cbfb3..62168daf9ae933c017e3b1cbd7d8e24d1e1fa129 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-27  Akim Demaille  <akim@epita.fr>
+
+       * src/reader.c (symbol_list_new): Be sure to initialize all the
+       fields.
+
 2001-12-27  Akim Demaille  <akim@epita.fr>
 
        All the hacks using a final pseudo state are now useless.
index 9bec971a32fe2c225b64af04d59643886fdee388..d7d6e86db16482b9d45f314c34d99c1793be4d34 100644 (file)
@@ -44,8 +44,7 @@ typedef struct symbol_list
   const char *action;
   int action_line;
   bucket *ruleprec;
-}
-symbol_list;
+} symbol_list;
 
 int lineno;
 char **tags;
@@ -75,6 +74,8 @@ symbol_list_new (bucket *sym)
   res->next = NULL;
   res->sym = sym;
   res->line = lineno;
+  res->action = NULL;
+  res->action_line = 0;
   res->ruleprec = NULL;
   return res;
 }