1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00

Removed a stupid bug in xmlSchemaValidateAttributes, failing to build a

* xmlschemas.c: Removed a stupid bug in xmlSchemaValidateAttributes,
  failing to build a linked list correctly (bug #169898, reported
  by bing song, hmm...).
This commit is contained in:
Kasimier T. Buchcik 2005-03-21 22:01:47 +00:00
parent b34ad1b676
commit a62f75f115
2 changed files with 11 additions and 8 deletions

View File

@ -1,3 +1,9 @@
Mon Mar 21 22:58:37 CET 2005 Kasimier Buchcik <libxml2-cvs@cazic.net>
* xmlschemas.c: Removed a stupid bug in xmlSchemaValidateAttributes,
failing to build a linked list correctly (bug #169898, reported
by bing song, hmm...).
Mon Mar 21 21:09:07 CET 2005 Kasimier Buchcik <libxml2-cvs@cazic.net>
* xmlschemas.c: Fixed a segfault, which occured during bubbling

View File

@ -20243,15 +20243,12 @@ xmlSchemaValidateAttributes(xmlSchemaValidCtxtPtr ctxt, xmlNodePtr elem, xmlSche
tmp->decl = attrDecl;
tmp->value = defValue;
tmp->next = NULL;
if (defAttrStates == NULL) {
if (defAttrStatesTop == NULL)
defAttrStates = tmp;
defAttrStates = tmp;
} else {
defAttrStates->next = tmp;
defAttrStatesTop = tmp;
}
}
else
defAttrStatesTop->next = tmp;
defAttrStatesTop = tmp;
}
}
attrUse = attrUse->next;
}