Commit 53ac9c96 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

xmlStopParser reset errNo

I had used it in contexts where that information ought to be preserved
parent afd27c21
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment