]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: use struct zero initializer instead of memset
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 22 Dec 2022 15:42:20 +0000 (10:42 -0500)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 17 Jan 2023 17:33:54 +0000 (12:33 -0500)
commit1c656836e37de88163f24924061556cde9e2d712
tree8606a5483ce3747f9d54aa3195ee30d203d3f24a
parent8ed7ef5d1a1e25d4e62b209fc4da18614c283e14
rpc: use struct zero initializer instead of memset

This is a more concise approach and guarantees there is
no time window where the struct is uninitialized.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/rpc/gendispatch.pl