]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virXMLPropULongLong: 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)
commitd919d9bbcdec678b1c0e97d847ac5bfa2c16fa47
treeb72eaffa86fc4b9857499b68b6dd061523def4c7
parent0420c325ceffa2c95bd1dbc9913ac4fc78b4eca6
virXMLPropULongLong: 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