qemu: Fix name comparison in qemuMonitorJSONBlockIoThrottleInfo()

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>
This commit is contained in:
Stefan Hajnoczi 2012-11-01 18:20:56 +01:00 committed by Eric Blake
parent 04ee70bfda
commit 23d47b33a2

View File

@ -3739,7 +3739,7 @@ qemuMonitorJSONBlockIoThrottleInfo(virJSONValuePtr result,
goto cleanup;
}
if (STREQ(current_dev, device))
if (STRNEQ(current_dev, device))
continue;
found = true;