1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-24 05:57:54 +03:00

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
This commit is contained in:
Daniel Veillard 2009-08-23 15:44:48 +02:00
parent 9d96264721
commit 852505b38f

View File

@ -9181,6 +9181,8 @@ xmlParseEndTag2(xmlParserCtxtPtr ctxt, const xmlChar *prefix,
*/
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);