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:
Kristina Hanicova 2021-05-04 13:40:05 +02:00 committed by Michal Privoznik
parent fdd06824e3
commit d1c8ee235a

View File

@ -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;
} }
} }