From a0fbf1e25cd0f91bedf159bf7f0086f4b1aeafc2 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Thu, 26 Jan 2023 16:48:50 +0100 Subject: [PATCH] rpc: Use struct zero initializer for args MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In a recent commit of v9.0.0-104-g0211e430a8 I've turned all args vars in src/remote/remote_driver.c to be initialized wit {0}. What I've missed was the generated code. Do what we've done in v9.0.0-13-g1c656836e3 and init also args, not just ret. Signed-off-by: Michal Privoznik Reviewed-by: Daniel P. Berrangé --- src/rpc/gendispatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/gendispatch.pl b/src/rpc/gendispatch.pl index e9dc8e27d7..085e2a29d8 100755 --- a/src/rpc/gendispatch.pl +++ b/src/rpc/gendispatch.pl @@ -1330,7 +1330,7 @@ elsif ($mode eq "client") { if ($argtype eq "void") { $call_args = "NULL"; } else { - push(@vars_list, "$argtype args"); + push(@vars_list, "$argtype args = {0}"); my $is_first_arg = 1; my $has_node_device = 0;