1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-23 01:52:48 +03:00

parser: Add comment in xmlStopParser

This commit is contained in:
Nick Wellnhofer
2025-06-21 15:08:07 +02:00
parent 7e3818424a
commit 1c96d5ef51

View File

@@ -11404,6 +11404,9 @@ xmlStopParser(xmlParserCtxt *ctxt) {
if (ctxt == NULL)
return;
xmlHaltParser(ctxt);
/*
* TODO: Update ctxt->lastError and ctxt->wellFormed?
*/
if (ctxt->errNo != XML_ERR_NO_MEMORY)
ctxt->errNo = XML_ERR_USER_STOP;
}