583439 missing line numbers in push mode
* parser.c: use the line number stored in the node itself if present
for end of tag line error reports
diff --git a/parser.c b/parser.c
index dc9c14d..dfdde8f 100644
--- a/parser.c
+++ b/parser.c
@@ -9181,6 +9181,8 @@
*/
if (name != (xmlChar*)1) {
if (name == NULL) name = BAD_CAST "unparseable";
+ if ((line == 0) && (ctxt->node != NULL))
+ line = ctxt->node->line;
xmlFatalErrMsgStrIntStr(ctxt, XML_ERR_TAG_NAME_MISMATCH,
"Opening and ending tag mismatch: %s line %d and %s\n",
ctxt->name, line, name);