]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Fix check for return value of qemuDomainAgentAvailable()
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 27 Apr 2015 08:11:35 +0000 (10:11 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 27 Apr 2015 08:11:35 +0000 (10:11 +0200)
Commit dcbb243bbc3470431d15cec4c5bb96d2de89a88b used the return value of
the function as int even though it returns bool.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_driver.c

index 70bf7aa1d6d6834aea67498ee16ae24ecdbd8463..31cbccb16e133d5b54d758da523128bd2537a72d 100644 (file)
@@ -19829,7 +19829,7 @@ qemuDomainInterfaceAddresses(virDomainPtr dom,
         if (qemuDomainObjBeginJob(driver, vm, QEMU_JOB_QUERY) < 0)
             goto cleanup;
 
-        if (qemuDomainAgentAvailable(vm, true) < 0)
+        if (!qemuDomainAgentAvailable(vm, true))
             goto endjob;
 
         qemuDomainObjEnterAgent(vm);