mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemuBlockJobInfoTranslate: Use explicit comparison against 0
Using ! on integers is misleading. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
0f7b80691b
commit
b643bf3954
@ -14649,7 +14649,7 @@ qemuBlockJobInfoTranslate(qemuMonitorBlockJobInfoPtr rawInfo,
|
||||
* applications think job is completed. Except when both cur
|
||||
* and end are zero, in which case qemu hasn't started the
|
||||
* job yet. */
|
||||
if (!info->cur && !info->end) {
|
||||
if (info->cur == 0 && info->end == 0) {
|
||||
if (rawInfo->ready_present) {
|
||||
info->end = 1;
|
||||
if (rawInfo->ready)
|
||||
|
Loading…
x
Reference in New Issue
Block a user