]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
D-Bus: Fix crash on properties without set accessors
authorJürg Billeter <j@bitron.ch>
Wed, 3 Feb 2010 21:50:13 +0000 (22:50 +0100)
committerJürg Billeter <j@bitron.ch>
Wed, 3 Feb 2010 21:50:13 +0000 (22:50 +0100)
codegen/valadbusclientmodule.vala

index 0fa089805ae2d132d964b17212ec6346af807c1f..0f8e765097771a827dcd5f957be90fe7c701b841 100644 (file)
@@ -2051,7 +2051,7 @@ internal class Vala.DBusClientModule : DBusModule {
                function.add_parameter (new CCodeFormalParameter ("self", "%s*".printf (iface.get_cname ())));
 
                if (prop.property_type.is_real_non_null_struct_type ()) {
-                       function.add_parameter (new CCodeFormalParameter ("result", "%s*".printf (prop.set_accessor.value_type.get_cname ())));
+                       function.add_parameter (new CCodeFormalParameter ("result", "%s*".printf (prop.get_accessor.value_type.get_cname ())));
                } else {
                        if (array_type != null) {
                                for (int dim = 1; dim <= array_type.rank; dim++) {