summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-08-28 16:45:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-08-28 16:45:56 +0200
commit2f4eeea1730e2931249471eddc203b13a6ac4ed4 (patch)
tree53d33fb1b9c30164b83d19c8a7d0b1f8647d282d /idlc
parent03e73d57f1bf7da4f4a19ae1cff9c104e8fedd5e (diff)
Do not leave $$ uninitialized in case of error
Change-Id: Id28fb53a98ff164cd14f8f9dcb4ebee7a71bfd1e
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/parser.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/idlc/source/parser.y b/idlc/source/parser.y
index ef166b85f6e3..d7fba7efed40 100644
--- a/idlc/source/parser.y
+++ b/idlc/source/parser.y
@@ -1484,6 +1484,7 @@ const_type :
if (!idlc()->error()->checkPublished(type))
{
type = 0;
+ $$ = ET_none;
}
else
{