mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +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
|
||||
virDomainChrDefParseTargetXML(virDomainChrDef *def,
|
||||
xmlNodePtr cur,
|
||||
xmlXPathContextPtr ctxt G_GNUC_UNUSED,
|
||||
unsigned int flags)
|
||||
{
|
||||
xmlNodePtr child;
|
||||
@ -11560,7 +11561,7 @@ virDomainChrDefParseXML(virDomainXMLOption *xmlopt,
|
||||
if (cur->type == XML_ELEMENT_NODE) {
|
||||
if (virXMLNodeNameEqual(cur, "target")) {
|
||||
seenTarget = true;
|
||||
if (virDomainChrDefParseTargetXML(def, cur, flags) < 0)
|
||||
if (virDomainChrDefParseTargetXML(def, cur, ctxt, flags) < 0)
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user