[LIBXML2] Update to version 2.10.1. CORE-17766

This commit is contained in:
Thomas Faber 2022-11-20 10:33:39 -05:00
parent 3f3714bad4
commit 0d5a4166a4
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
6 changed files with 39 additions and 42 deletions

View file

@ -15359,22 +15359,10 @@ xmlDocPtr
xmlCtxtReadDoc(xmlParserCtxtPtr ctxt, const xmlChar * cur,
const char *URL, const char *encoding, int options)
{
xmlParserInputPtr stream;
if (cur == NULL)
return (NULL);
if (ctxt == NULL)
return (NULL);
xmlInitParser();
xmlCtxtReset(ctxt);
stream = xmlNewStringInputStream(ctxt, cur);
if (stream == NULL) {
return (NULL);
}
inputPush(ctxt, stream);
return (xmlDoRead(ctxt, URL, encoding, options, 1));
return (xmlCtxtReadMemory(ctxt, (const char *) cur, xmlStrlen(cur), URL,
encoding, options));
}
/**