mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
style: initialize some struct members
* src/symtab.c (sym_content_new): Initialize all the location members. Not needed by the code, but disturbing values when using a debugger.
This commit is contained in:
@@ -77,10 +77,12 @@ sym_content_new (symbol *s)
|
||||
res->symbol = s;
|
||||
|
||||
res->type_name = NULL;
|
||||
res->type_loc = empty_loc;
|
||||
for (int i = 0; i < CODE_PROPS_SIZE; ++i)
|
||||
code_props_none_init (&res->props[i]);
|
||||
|
||||
res->number = NUMBER_UNDEFINED;
|
||||
res->prec_loc = empty_loc;
|
||||
res->prec = 0;
|
||||
res->assoc = undef_assoc;
|
||||
res->user_token_number = USER_NUMBER_UNDEFINED;
|
||||
|
||||
Reference in New Issue
Block a user