symtab: add missing initializations

* src/symtab.c (semantic_type_new): Here.
This commit is contained in:
Theophile Ranquet
2012-12-11 13:23:44 +01:00
parent ae9c90ba00
commit e96b1b2c45

View File

@@ -111,8 +111,8 @@ semantic_type_new (uniqstr tag, const location *loc)
uniqstr_assert (tag);
res->tag = tag;
if (loc)
res->location = *loc;
res->location = loc ? *loc : empty_location;
res->status = undeclared;
for (int i = 0; i < CODE_PROPS_SIZE; ++i)
code_props_none_init (&res->props[i]);