1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-24 21:33:51 +03:00

html: Use NEXTL in htmlParseHTMLAttribute

This is more efficient than NEXT.
This commit is contained in:
Nick Wellnhofer 2023-03-15 16:22:13 +01:00
parent b167c73144
commit 14c62e0dd3

View File

@ -2859,7 +2859,7 @@ htmlParseHTMLAttribute(htmlParserCtxtPtr ctxt, const xmlChar stop) {
for ( ; bits >= 0; bits-= 6) {
*out++ = ((c >> bits) & 0x3F) | 0x80;
}
NEXT;
NEXTL(l);
}
if (out - buffer > maxLength) {
htmlParseErr(ctxt, XML_ERR_ATTRIBUTE_NOT_FINISHED,