From: Akim Demaille Date: Thu, 27 Dec 2001 18:05:42 +0000 (+0000) Subject: * src/reader.c (symbol_list_new): Be sure to initialize all the X-Git-Tag: before-m4-back-end~96 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/d945f5cd8e85c0343da52dc720d23624e1c28661 * src/reader.c (symbol_list_new): Be sure to initialize all the fields. --- diff --git a/ChangeLog b/ChangeLog index e8f48a0b..62168daf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-12-27 Akim Demaille + + * src/reader.c (symbol_list_new): Be sure to initialize all the + fields. + 2001-12-27 Akim Demaille All the hacks using a final pseudo state are now useless. diff --git a/src/reader.c b/src/reader.c index 9bec971a..d7d6e86d 100644 --- a/src/reader.c +++ b/src/reader.c @@ -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; }