1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

parser: Clarify logic in xmlParseStartTag2

This commit is contained in:
Nick Wellnhofer 2024-09-26 21:24:00 +02:00
parent 207999793f
commit 74dfc49b5f

View File

@ -9389,11 +9389,11 @@ next_attr:
nsIndex = NS_INDEX_EMPTY;
nsuri = NULL;
uriHashValue = URI_HASH_EMPTY;
} if (aprefix == ctxt->str_xml) {
} else if (aprefix == ctxt->str_xml) {
nsIndex = NS_INDEX_XML;
nsuri = ctxt->str_xml_ns;
uriHashValue = URI_HASH_XML;
} else if (aprefix != NULL) {
} else {
nsIndex = xmlParserNsLookup(ctxt, &attr->prefix, NULL);
if ((nsIndex == INT_MAX) ||
(nsIndex < ctxt->nsdb->minNsIndex)) {