]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Fix initialization value of 'multi' in PCI address
authorXian Han Yu <xhyubj@linux.vnet.ibm.com>
Mon, 15 Aug 2016 04:22:25 +0000 (06:22 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 2 Sep 2016 14:43:00 +0000 (16:43 +0200)
commitf7658da6b352e1707726f8f0bf2415f6922779c9
tree0549f25edff3910ac6e129803a7c2e26e41833e7
parent4c3b3ea3991a2c05ba751b3be9da6d1266608310
conf: Fix initialization value of 'multi' in PCI address

The 'multi' element in PCI address struct used as 'virTristateSwitch',
and its default value is 'VIR_TRISTATE_SWITCH_ABSENT'. Current PCI
process use 'false' to initialization 'multi', which is ambiguously
for assignment or comparison. This patch use '{0}' to initialize
the whole PCI address struct, which fix the 'multi' initialization
and makes code more simplify and explicitly.

Signed-off-by: Xian Han Yu <xhyubj@linux.vnet.ibm.com>
src/conf/domain_addr.c
src/conf/node_device_conf.c
src/qemu/qemu_domain_address.c