mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 20:41:41 +00:00
[LIBXML2] Update to version 2.9.9. CORE-15854
This commit is contained in:
parent
743951eccf
commit
1fe58c4058
22 changed files with 291 additions and 461 deletions
13
sdk/lib/3rdparty/libxml2/SAX2.c
vendored
13
sdk/lib/3rdparty/libxml2/SAX2.c
vendored
|
@ -1665,7 +1665,11 @@ xmlSAX2StartElement(void *ctx, const xmlChar *fullname, const xmlChar **atts)
|
|||
#ifdef DEBUG_SAX_TREE
|
||||
xmlGenericError(xmlGenericErrorContext, "pushing(%s)\n", name);
|
||||
#endif
|
||||
nodePush(ctxt, ret);
|
||||
if (nodePush(ctxt, ret) < 0) {
|
||||
xmlUnlinkNode(ret);
|
||||
xmlFreeNode(ret);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Link the child element
|
||||
|
@ -2257,6 +2261,7 @@ xmlSAX2StartElementNs(void *ctx,
|
|||
ctxt->freeElems = ret->next;
|
||||
ctxt->freeElemsNr--;
|
||||
memset(ret, 0, sizeof(xmlNode));
|
||||
ret->doc = ctxt->myDoc;
|
||||
ret->type = XML_ELEMENT_NODE;
|
||||
|
||||
if (ctxt->dictNames)
|
||||
|
@ -2336,7 +2341,11 @@ xmlSAX2StartElementNs(void *ctx,
|
|||
/*
|
||||
* We are parsing a new node.
|
||||
*/
|
||||
nodePush(ctxt, ret);
|
||||
if (nodePush(ctxt, ret) < 0) {
|
||||
xmlUnlinkNode(ret);
|
||||
xmlFreeNode(ret);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Link the child element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue