1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-01 10:06:59 +03:00

the modules should not import <config.h> directly, some cleanups Peter

* nanoftp.c nanohttp.c: the modules should not import <config.h>
  directly, some cleanups
* xmlschemas.c: Peter Sobisch found a nasty bug in the Schemas
  validation code.
Daniel
This commit is contained in:
Daniel Veillard
2003-07-08 12:16:59 +00:00
parent 13d07cdc0b
commit 2db8c125be
4 changed files with 24 additions and 16 deletions

View File

@ -5413,8 +5413,9 @@ xmlSchemaValidateType(xmlSchemaValidCtxtPtr ctxt, xmlNodePtr elem,
xmlSchemaTypePtr type) {
xmlChar *nil;
if ((elem->content == NULL) || (type == NULL) || (elemDecl == NULL))
if ((elem == NULL) || (type == NULL) || (elemDecl == NULL))
return(0);
/*
* 3.3.4 : 2
*/