[vala/wip/gtkgir: 16/17] girparser: Avoid fatal handling of nameless unions



commit 0946c170eca57e499d21a30dc469a5375629708a
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Jan 31 22:25:16 2016 +0100

    girparser: Avoid fatal handling of nameless unions

 vala/valagirparser.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index e900c61..369ba52 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -3289,7 +3289,7 @@ public class Vala.GirParser : CodeVisitor {
 
        void parse_union () {
                start_element ("union");
-               push_node (element_get_name (), true);
+               push_node (element_get_name () ?? "nameless_union", true);
 
                Struct st;
                if (current.new_symbol) {


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