fixed a memory bug added test from Graham Bennett and regenerated the
* xmlschemas.c: fixed a memory bug
* doc/examples/reader4.c doc/examples/*: added test from Graham Bennett
and regenerated the directory
Daniel
diff --git a/xmlschemas.c b/xmlschemas.c
index cc9620e..1e938d0 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -7748,6 +7748,8 @@
xmlAttrPtr attr;
const xmlChar *attrValue;
xmlChar *des = NULL; /* The reported designation. */
+ char buf[40];
+
if ((ctxt == NULL) || (schema == NULL) || (node == NULL))
return (NULL);
@@ -7770,8 +7772,6 @@
}
if (topLevel == 0) {
- char buf[40];
-
/*
* Parse as local complex type definition.
*/