Using ! on integers is misleading.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 800f98e474..b82f7e249a 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -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)
--
2.28.0