mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-24 09:49:22 +03:00
Fix structured validation errors
Also pass 'str2'. Fixes bug 777473.
This commit is contained in:
4
valid.c
4
valid.c
@ -163,7 +163,7 @@ xmlErrValidNode(xmlValidCtxtPtr ctxt,
|
|||||||
__xmlRaiseError(schannel, channel, data, pctxt, node, XML_FROM_VALID, error,
|
__xmlRaiseError(schannel, channel, data, pctxt, node, XML_FROM_VALID, error,
|
||||||
XML_ERR_ERROR, NULL, 0,
|
XML_ERR_ERROR, NULL, 0,
|
||||||
(const char *) str1,
|
(const char *) str1,
|
||||||
(const char *) str1,
|
(const char *) str2,
|
||||||
(const char *) str3, 0, 0, msg, str1, str2, str3);
|
(const char *) str3, 0, 0, msg, str1, str2, str3);
|
||||||
}
|
}
|
||||||
#endif /* LIBXML_VALID_ENABLED or LIBXML_SCHEMAS_ENABLED */
|
#endif /* LIBXML_VALID_ENABLED or LIBXML_SCHEMAS_ENABLED */
|
||||||
@ -247,7 +247,7 @@ xmlErrValidWarning(xmlValidCtxtPtr ctxt,
|
|||||||
__xmlRaiseError(schannel, channel, data, pctxt, node, XML_FROM_VALID, error,
|
__xmlRaiseError(schannel, channel, data, pctxt, node, XML_FROM_VALID, error,
|
||||||
XML_ERR_WARNING, NULL, 0,
|
XML_ERR_WARNING, NULL, 0,
|
||||||
(const char *) str1,
|
(const char *) str1,
|
||||||
(const char *) str1,
|
(const char *) str2,
|
||||||
(const char *) str3, 0, 0, msg, str1, str2, str3);
|
(const char *) str3, 0, 0, msg, str1, str2, str3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user