Commit a62f75f1 authored by Kasimier T. Buchcik's avatar Kasimier T. Buchcik
Browse files

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...).
parent b34ad1b6
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
......
......@@ -20243,15 +20243,12 @@ xmlSchemaValidateAttributes(xmlSchemaValidCtxtPtr ctxt, xmlNodePtr elem, xmlSche
tmp->decl = attrDecl;
tmp->value = defValue;
tmp->next = NULL;
if (defAttrStates == NULL) {
defAttrStates = tmp;
if (defAttrStatesTop == NULL)
defAttrStates = tmp;
} else {
defAttrStates->next = tmp;
defAttrStatesTop = tmp;
}
}
else
defAttrStatesTop->next = tmp;
defAttrStatesTop = tmp;
}
}
attrUse = attrUse->next;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment