1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

conf: virDomainDefParseMemory: remove pointless assignment

Evaluate the XPath as a boolean, instead of trying to get a node
out of it.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Ján Tomko 2022-06-22 13:44:06 +02:00
parent be4047d051
commit 74077a651b

View File

@ -19184,7 +19184,7 @@ virDomainDefParseMemory(virDomainDef *def,
}
}
if ((node = virXPathNode("./memoryBacking/nosharepages", ctxt)))
if (virXPathBoolean("boolean(./memoryBacking/nosharepages)", ctxt))
def->mem.nosharepages = true;
if (virXPathBoolean("boolean(./memoryBacking/locked)", ctxt))