]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Fix criticals on calculate_common_prefix
authorLuca Bruno <lucabru@src.gnome.org>
Fri, 9 Dec 2011 10:02:10 +0000 (11:02 +0100)
committerJürg Billeter <j@bitron.ch>
Mon, 12 Dec 2011 19:50:47 +0000 (20:50 +0100)
vala/valagirparser.vala

index 1908a0527dc3e59299957d0e9c69a9b706653711..615284151e62c8902c311d5178eda7cf4de684be 100644 (file)
@@ -1932,7 +1932,7 @@ public class Vala.GirParser : CodeVisitor {
                end_element ("alias");
        }
 
-       private void calculate_common_prefix (ref string common_prefix, string cname) {
+       private void calculate_common_prefix (ref string? common_prefix, string cname) {
                if (common_prefix == null) {
                        common_prefix = cname;
                        while (common_prefix.length > 0 && !common_prefix.has_suffix ("_")) {