• J
    qemu: Resolve Coverity REVERSE_INULL · 9f845b11
    John Ferlan 提交于
    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: NJohn Ferlan <jferlan@redhat.com>
    9f845b11
qemu_driver.c 558.7 KB