diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index c6b97e1e52..a9c5cbce21 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -7124,7 +7124,7 @@ void virDomainDiskInsertPreAlloced(virDomainDefPtr def, virDomainDiskDefPtr virDomainDiskRemove(virDomainDefPtr def, size_t i) { - virDomainDiskDefPtr disk = disk = def->disks[i]; + virDomainDiskDefPtr disk = def->disks[i]; if (def->ndisks > 1) { memmove(def->disks + i,