Use the proper check whether a disk is empty.
---
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 5bd45137c..46f82ab33 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -415,7 +415,7 @@ qemuMigrateDisk(virDomainDiskDef const *disk,
/* Default is to migrate only non-shared non-readonly disks
* with source */
return !disk->src->shared && !disk->src->readonly &&
- virDomainDiskGetSource(disk);
+ !virStorageSourceIsEmpty(disk->src);
}
--
2.12.2