]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix .begin on async methods returning structs
authorJürg Billeter <j@bitron.ch>
Thu, 14 Jun 2012 12:26:33 +0000 (14:26 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 14 Jun 2012 12:26:33 +0000 (14:26 +0200)
codegen/valaccodemethodcallmodule.vala

index 8be973ef15a8c0edd317b78bcb567690b1f69a82..bb27040781fdbb08b8982bbe621b50de00752ed0 100644 (file)
@@ -618,6 +618,11 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
                        }
                }
 
+               if (async_call == ccall) {
+                       // skip out parameter for .begin() calls
+                       return_result_via_out_param = false;
+               }
+
                CCodeExpression out_param_ref = null;
 
                if (return_result_via_out_param) {