[vala/wip/gtkgir: 6/7] girparser: Avoid fatal handling of nameless unions



commit b6cfb5364bf3db7e3cd9782525fffe660c187210
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 257894d..f59c5b1 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -3290,7 +3290,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]