projects
/
platform
/
upstream
/
bison.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae9c90b
)
symtab: add missing initializations
author
Theophile Ranquet
<ranquet@lrde.epita.fr>
Tue, 11 Dec 2012 12:23:44 +0000
(13:23 +0100)
committer
Theophile Ranquet
<ranquet@lrde.epita.fr>
Fri, 14 Dec 2012 10:35:27 +0000
(11:35 +0100)
* src/symtab.c (semantic_type_new): Here.
src/symtab.c
patch
|
blob
|
history
diff --git
a/src/symtab.c
b/src/symtab.c
index
54155e1
..
c8490ac
100644
(file)
--- a/
src/symtab.c
+++ b/
src/symtab.c
@@
-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]);