diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 5f1d6b59f4d3890fcaefbd466cd60c3fa102dda9..ab6bec88ab20816832d4951c24a3146706312d86 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -6489,7 +6489,7 @@ static int qemudDomainStart(virDomainPtr dom) { * We should still have a reference left to vm but * one should check for 0 anyway */ - if (qemuDomainObjEndJob(vm) = 0) { + if (qemuDomainObjEndJob(vm) == 0) { vm = NULL; goto cleanup; }