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:
Nick Shyrokovskiy 2021-01-06 18:40:51 +03:00
parent b44caea0b2
commit c9e55f92fd

View File

@ -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;