mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
more types, more coverage more problems fixed Daniel
* gentest.py testapi.c: more types, more coverage * parser.c parserInternals.c relaxng.c valid.c xmlIO.c xmlschemastypes.c: more problems fixed Daniel
This commit is contained in:
10
HTMLparser.c
10
HTMLparser.c
@@ -2428,7 +2428,9 @@ const htmlEntityDesc *
|
||||
htmlParseEntityRef(htmlParserCtxtPtr ctxt, const xmlChar **str) {
|
||||
const xmlChar *name;
|
||||
const htmlEntityDesc * ent = NULL;
|
||||
*str = NULL;
|
||||
|
||||
if (str != NULL) *str = NULL;
|
||||
if ((ctxt == NULL) || (ctxt->input == NULL)) return(NULL);
|
||||
|
||||
if (CUR == '&') {
|
||||
NEXT;
|
||||
@@ -2439,7 +2441,8 @@ htmlParseEntityRef(htmlParserCtxtPtr ctxt, const xmlChar **str) {
|
||||
} else {
|
||||
GROW;
|
||||
if (CUR == ';') {
|
||||
*str = name;
|
||||
if (str != NULL)
|
||||
*str = name;
|
||||
|
||||
/*
|
||||
* Lookup the entity in the table.
|
||||
@@ -2451,7 +2454,8 @@ htmlParseEntityRef(htmlParserCtxtPtr ctxt, const xmlChar **str) {
|
||||
htmlParseErr(ctxt, XML_ERR_ENTITYREF_SEMICOL_MISSING,
|
||||
"htmlParseEntityRef: expecting ';'\n",
|
||||
NULL, NULL);
|
||||
*str = name;
|
||||
if (str != NULL)
|
||||
*str = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user