From: Jiri Denemark Date: Thu, 23 Mar 2017 14:53:50 +0000 (+0100) Subject: conf: Fix XML parser for timer frequency X-Git-Tag: v3.2.0-rc1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a506cce3846fdd0af859c7e0660b3b8c4ae194f;p=thirdparty%2Flibvirt.git conf: Fix XML parser for timer frequency The frequency is documented and formatted as an attribute of the element rather than a nested element expected by the parser. Luckily enough, timer frequency has not been used by any driver so far. And users were not able to set it in the XML either. Signed-off-by: Jiri Denemark --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index ff0eb2d6f5..1b0a55b27f 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -11485,7 +11485,7 @@ virDomainTimerDefParseXML(xmlNodePtr node, } } - ret = virXPathULong("string(./frequency)", ctxt, &def->frequency); + ret = virXPathULong("string(./@frequency)", ctxt, &def->frequency); if (ret == -1) { def->frequency = 0; } else if (ret < 0) {