Due to the switch of parameters in a call to virDomainShmemDefEquals()
no device was found when looking for device with all the information
except address. Also fix the indentation.
Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
src/conf/domain_conf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index a70be319891e..0ddfef89e762 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -14814,8 +14814,8 @@ virDomainShmemDefFind(virDomainDefPtr def,
size_t i;
for (i = 0; i < def->nshmems; i++) {
- if (virDomainShmemDefEquals(def->shmems[i], shmem))
- break;
+ if (virDomainShmemDefEquals(shmem, def->shmems[i]))
+ break;
}
if (i < def->nshmems)
--
2.10.0