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

small enhancement to dtd handling of (a?)+ (bug 142487)

* parser.c: small enhancement to dtd handling of (a?)+ (bug 142487)
This commit is contained in:
William M. Brack
2004-05-14 03:48:02 +00:00
parent ee8960bcab
commit eb8509c273
2 changed files with 8 additions and 1 deletions

View File

@@ -4822,7 +4822,10 @@ xmlParseElementChildrenContentDecl (xmlParserCtxtPtr ctxt, int inputchk) {
if (ret != NULL) {
int found = 0;
ret->ocur = XML_ELEMENT_CONTENT_PLUS;
if (ret->ocur == XML_ELEMENT_CONTENT_OPT)
ret->ocur == XML_ELEMENT_CONTENT_MULT;
else
ret->ocur = XML_ELEMENT_CONTENT_PLUS;
/*
* Some normalization:
* (a | b*)+ == (a | b)*