mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
qemu_driver: Resolve Coverity CONSTANT_EXPRESSION_RESULT
The call to virDomainSnapshotRedefinePrep() had a spurrious ! in front of
it which caused Coverity to complan that the expression is always false.
(cherry picked from commit 9d7254de43
)
This commit is contained in:
parent
0644e2d5cb
commit
87538e59ad
@ -13475,8 +13475,8 @@ qemuDomainSnapshotCreateXML(virDomainPtr domain,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (redefine) {
|
if (redefine) {
|
||||||
if (!virDomainSnapshotRedefinePrep(domain, vm, &def, &snap,
|
if (virDomainSnapshotRedefinePrep(domain, vm, &def, &snap,
|
||||||
&update_current, flags) < 0)
|
&update_current, flags) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
} else {
|
} else {
|
||||||
/* Easiest way to clone inactive portion of vm->def is via
|
/* Easiest way to clone inactive portion of vm->def is via
|
||||||
|
Loading…
Reference in New Issue
Block a user