mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +00:00
qemu: build fix for 910b94df
Fixes compiler error:
src/qemu/qemu_migration.c:4814:20: error: ‘dstOffline’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]
4814 | if (offline && !dstOffline) {
The commit that introduced the error:
910b94df
: qemu: adopt to VIR_DRV_SUPPORTS_FEATURE return -1
Signed-off-by: Nick Shyrokovskiy <nshyrokovskiy@gmail.com>
This commit is contained in:
parent
b44caea0b2
commit
c9e55f92fd
@ -4709,7 +4709,7 @@ qemuMigrationSrcPerformPeer2Peer(virQEMUDriverPtr driver,
|
||||
int p2p;
|
||||
virErrorPtr orig_err = NULL;
|
||||
bool offline = !!(flags & VIR_MIGRATE_OFFLINE);
|
||||
int dstOffline;
|
||||
int dstOffline = 0;
|
||||
g_autoptr(virQEMUDriverConfig) cfg = virQEMUDriverGetConfig(driver);
|
||||
int useParams;
|
||||
int rc;
|
||||
|
Loading…
Reference in New Issue
Block a user