]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix text block info parsing
authorEric Blake <eblake@redhat.com>
Thu, 13 Oct 2011 00:27:20 +0000 (18:27 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 13 Oct 2011 19:44:02 +0000 (13:44 -0600)
commitf043ff63087184ac5a67015d5bbc88e2f48d6559
tree9219754dd5c85d421c43990a6c48f7b09d0f27d8
parent60be9e8c0e3b983349759bcca399826045eed035
qemu: fix text block info parsing

Detected by Coverity.  p (the pointer to the string) is always true;
when in reality, we wanted to know whether the integer value of the
just-parsed string is '0' or '1'.  Logic bug since commit b1b5b51.

* src/qemu/qemu_monitor_text.c (qemuMonitorTextGetBlockInfo): Set
results to proper value.
src/qemu/qemu_monitor_text.c