mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-19 14:50:07 +03:00
567619 xmlValidateNotationUse missing param test
* valid.c: this was raised by a testapi crash on solaris
This commit is contained in:
parent
aacc2a2466
commit
eab3ac94c7
3
valid.c
3
valid.c
@ -3399,7 +3399,8 @@ int
|
||||
xmlValidateNotationUse(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
|
||||
const xmlChar *notationName) {
|
||||
xmlNotationPtr notaDecl;
|
||||
if ((doc == NULL) || (doc->intSubset == NULL)) return(-1);
|
||||
if ((doc == NULL) || (doc->intSubset == NULL) ||
|
||||
(notationName == NULL)) return(-1);
|
||||
|
||||
notaDecl = xmlGetDtdNotationDesc(doc->intSubset, notationName);
|
||||
if ((notaDecl == NULL) && (doc->extSubset != NULL))
|
||||
|
Loading…
x
Reference in New Issue
Block a user