From a58ff736441039ff1c776089b912a60bee9c748b Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Tue, 8 Feb 2022 12:11:26 +0100 Subject: [PATCH] cpu_conf: unbreak XPath in virCPUDefParseXML() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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: 0fe2d8dd335054fae38b46bbbac58a4662e1a1d0 Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- src/conf/cpu_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf/cpu_conf.c b/src/conf/cpu_conf.c index da83e99371..819efcea8c 100644 --- a/src/conf/cpu_conf.c +++ b/src/conf/cpu_conf.c @@ -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, -- 2.47.2