]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Resolve Coverity REVERSE_INULL
authorJohn Ferlan <jferlan@redhat.com>
Thu, 4 Sep 2014 14:12:13 +0000 (10:12 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 11 Sep 2014 11:33:19 +0000 (07:33 -0400)
commit9f845b1115f0b5be1554893f1b9ca2d5a3b8c7cd
tree5589f0ab1703fca438b631dedcfd8f2730e049c5
parentabddeb84346adfe644487a3c7f7c1f643d64407f
qemu: Resolve Coverity REVERSE_INULL

Coverity complains that checking for !domlist after setting doms = domlist
and making a deref of doms just above

It seems the call in question was intended to me made in the case that
'doms' was passed in and not when the virDomainObjListExport() call
allocated domlist and already called virConnectGetAllDomainStatsCheckACL().

Thus rather than check for !domlist - check that "doms != domlist" in
order to avoid the Coverity message.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_driver.c