]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Avoid comparing size_t with -1
authorJiri Denemark <jdenemar@redhat.com>
Mon, 11 Dec 2017 13:34:20 +0000 (14:34 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 11 Dec 2017 13:56:22 +0000 (14:56 +0100)
commitfd754cb69cb073d370d73b9eab65db8ce1400096
tree6d98cb093bb3514645631e7f3da2c75c71e7535d
parent3446750bab844f16ee2176164e610a876e95a1d7
qemu: Avoid comparing size_t with -1

ncpus would be -1 on error and the cleanup for loop would not be skipped
in this case.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_capabilities.c