]> xenbits.xensource.com Git - libvirt.git/commit
virXMLPropUInt: Always initialize @result
authorPeter Krempa <pkrempa@redhat.com>
Thu, 6 May 2021 12:00:16 +0000 (14:00 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 7 May 2021 08:06:18 +0000 (10:06 +0200)
commitf5eb6d0ad9e8a7a9ac8262c40933a4821312e632
treef67d71344d0ee2dfb9e52f20a2e7eafbd2d08f5a
parent84960ca118cd06622b1bc0caa6e87638d8fad49b
virXMLPropUInt: Always initialize @result

Compilers aren't able to see whether @result is set or not and thus
don't warn of a potential use of uninitialized value. Always set @result
to prevent uninitialized use.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virxml.c