]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Fix name comparison in qemuMonitorJSONBlockIoThrottleInfo()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 1 Nov 2012 17:20:56 +0000 (18:20 +0100)
committerEric Blake <eblake@redhat.com>
Thu, 1 Nov 2012 21:52:00 +0000 (15:52 -0600)
The string comparison logic was inverted and matched the first drive
that does *not* have the name we search for.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 23d47b33a2f8b524c32d556d6d55a7ccb0c5903a)

src/qemu/qemu_monitor_json.c

index 0db7cc472106fc1331b15f75393f0176417de3b2..bef869a7a94cae727a1e992b9140eab62b8d3343 100644 (file)
@@ -3677,7 +3677,7 @@ qemuMonitorJSONBlockIoThrottleInfo(virJSONValuePtr result,
             goto cleanup;
         }
 
-        if (STREQ(current_dev, device))
+        if (STRNEQ(current_dev, device))
             continue;
 
         found = true;