cpu_conf: unbreak XPath in virCPUDefParseXML()

In one of my previous commits, I've changed an XPath in
virCPUDefParseXML() from "boolean(./counter...)" to
"./counter...)". Notice the dangling closing bracket? Well, I
didn't back then.

Fixes: 0fe2d8dd33
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Michal Privoznik 2022-02-08 12:11:26 +01:00
parent 87a43a907f
commit a58ff73644

View File

@ -441,7 +441,7 @@ virCPUDefParseXML(xmlXPathContextPtr ctxt,
return -1;
}
if ((counter_node = virXPathNode("./counter[@name='tsc'])", ctxt))) {
if ((counter_node = virXPathNode("./counter[@name='tsc']", ctxt))) {
tsc = g_new0(virHostCPUTscInfo, 1);
if (virXMLPropULongLong(counter_node, "frequency", 10,