From c9e55f92fd5fd12dc939e26301b7466444a06d30 Mon Sep 17 00:00:00 2001 From: Nick Shyrokovskiy Date: Wed, 6 Jan 2021 18:40:51 +0300 Subject: [PATCH] qemu: build fix for 910b94df MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/qemu/qemu_migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index d699bbbac7..c5108e55a0 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -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;