bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/2] symtab: add missing initializations


From: Theophile Ranquet
Subject: [PATCH 2/2] symtab: add missing initializations
Date: Wed, 12 Dec 2012 11:35:09 +0100

* src/symtab.c (semantic_type_new): Here.
---
 src/symtab.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/symtab.c b/src/symtab.c
index 54155e1..c8490ac 100644
--- 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]);
 
-- 
1.8.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]