]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virXMLPropTristateBool: Always initialize '@result'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 6 May 2021 12:35:22 +0000 (14:35 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 7 May 2021 08:06:18 +0000 (10:06 +0200)
commitbb864e6aa0f9fc5af81547ca81690ac3fca2caa6
tree7dec5bbbd87aa7f835f9480cb35f6cecaceec611
parent46e6542a927e3bee8955007b1d83ca187691250e
virXMLPropTristateBool: 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