1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-28 00:21:53 +03:00

fixed validation of maxLength with no content using patch submitted by

* xmlschemastypes.c: fixed validation of maxLength with no
  content using patch submitted by Eric Haszlakiewicz
  (bug 133259)
This commit is contained in:
William M. Brack
2004-02-03 17:55:56 +00:00
parent 6619b6a0d6
commit fbf2c5eaf5
2 changed files with 8 additions and 1 deletions

View File

@ -3528,7 +3528,8 @@ xmlSchemaValidateFacet(xmlSchemaTypePtr base ATTRIBUTE_UNUSED,
len = xmlSchemaNormLen(value);
break;
case XML_SCHEMAS_STRING:
len = xmlUTF8Strlen(value);
if (value != NULL)
len = xmlUTF8Strlen(value);
break;
default:
TODO