mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
conf: Propagate xmlXPathContextPtr into virDomainChrDefParseTargetXML()
Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
fdd06824e3
commit
d1c8ee235a
@ -11021,6 +11021,7 @@ virDomainChrTargetModelFromString(int devtype,
|
|||||||
static int
|
static int
|
||||||
virDomainChrDefParseTargetXML(virDomainChrDef *def,
|
virDomainChrDefParseTargetXML(virDomainChrDef *def,
|
||||||
xmlNodePtr cur,
|
xmlNodePtr cur,
|
||||||
|
xmlXPathContextPtr ctxt G_GNUC_UNUSED,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
xmlNodePtr child;
|
xmlNodePtr child;
|
||||||
@ -11560,7 +11561,7 @@ virDomainChrDefParseXML(virDomainXMLOption *xmlopt,
|
|||||||
if (cur->type == XML_ELEMENT_NODE) {
|
if (cur->type == XML_ELEMENT_NODE) {
|
||||||
if (virXMLNodeNameEqual(cur, "target")) {
|
if (virXMLNodeNameEqual(cur, "target")) {
|
||||||
seenTarget = true;
|
seenTarget = true;
|
||||||
if (virDomainChrDefParseTargetXML(def, cur, flags) < 0)
|
if (virDomainChrDefParseTargetXML(def, cur, ctxt, flags) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user