mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-19 14:50:07 +03:00
xmlStopParser reset errNo
I had used it in contexts where that information ought to be preserved
This commit is contained in:
parent
afd27c21f6
commit
53ac9c9649
3
parser.c
3
parser.c
@ -6782,6 +6782,7 @@ xmlParseConditionalSections(xmlParserCtxtPtr ctxt) {
|
||||
if (RAW != '[') {
|
||||
xmlFatalErr(ctxt, XML_ERR_CONDSEC_INVALID, NULL);
|
||||
xmlStopParser(ctxt);
|
||||
ctxt->errNo = XML_ERR_CONDSEC_INVALID;
|
||||
return;
|
||||
} else {
|
||||
if (ctxt->input->id != id) {
|
||||
@ -6844,6 +6845,7 @@ xmlParseConditionalSections(xmlParserCtxtPtr ctxt) {
|
||||
if (RAW != '[') {
|
||||
xmlFatalErr(ctxt, XML_ERR_CONDSEC_INVALID, NULL);
|
||||
xmlStopParser(ctxt);
|
||||
ctxt->errNo = XML_ERR_CONDSEC_INVALID;
|
||||
return;
|
||||
} else {
|
||||
if (ctxt->input->id != id) {
|
||||
@ -6901,6 +6903,7 @@ xmlParseConditionalSections(xmlParserCtxtPtr ctxt) {
|
||||
} else {
|
||||
xmlFatalErr(ctxt, XML_ERR_CONDSEC_INVALID_KEYWORD, NULL);
|
||||
xmlStopParser(ctxt);
|
||||
ctxt->errNo = XML_ERR_CONDSEC_INVALID_KEYWORD;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user