mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-05 19:01:18 +03:00
parser: Add more parser context accessors
This commit is contained in:
@ -2867,7 +2867,8 @@ libxml_addLocalCatalog(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
||||
ctxt = (xmlParserCtxtPtr) PyparserCtxt_Get(pyobj_ctxt);
|
||||
|
||||
if (URL != NULL) {
|
||||
ctxt->catalogs = xmlCatalogAddLocal(ctxt->catalogs, URL);
|
||||
void *catalogs = xmlCtxtGetCatalogs(ctxt);
|
||||
xmlCtxtSetCatalogs(ctxt, xmlCatalogAddLocal(catalogs, URL));
|
||||
}
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
|
Reference in New Issue
Block a user