* src/reader.c (symbol_list_new): Be sure to initialize all the

fields.
This commit is contained in:
Akim Demaille
2001-12-27 18:05:42 +00:00
parent d200e455d0
commit d945f5cd8e
2 changed files with 8 additions and 2 deletions

View File

@@ -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.

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