]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
D-Bus: Fix variable conflict with server properties
authorJürg Billeter <j@bitron.ch>
Mon, 15 Jun 2009 16:12:38 +0000 (18:12 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 15 Jun 2009 16:12:38 +0000 (18:12 +0200)
codegen/valadbusservermodule.vala

index e6f67e2c198a6854270efb6118a150fc179c9236..bba546ef017f855fb93ec1ae2fa740a6a2fb23a1 100644 (file)
@@ -745,8 +745,10 @@ internal class Vala.DBusServerModule : DBusClientModule {
                                continue;
                        }
 
+                       var inner_block = new CCodeBlock ();
+                       prop_block.add_statement (inner_block);
                        var postfragment = new CCodeFragment ();
-                       prop_block.add_statement (postfragment);
+                       inner_block.add_statement (postfragment);
 
                        iter_call = new CCodeFunctionCall (new CCodeIdentifier ("dbus_message_iter_open_container"));
                        iter_call.add_argument (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, new CCodeIdentifier ("subiter")));