mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
conf: Fix XML parser for timer frequency
The frequency is documented and formatted as an attribute of the <timer> element rather than a nested <frequency> 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 <jdenemar@redhat.com>
This commit is contained in:
parent
8ffffae97f
commit
5a506cce38
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user