mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
rpc: Use struct zero initializer for args
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 <mprivozn@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
2dde3840b1
commit
a0fbf1e25c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user