fixed a lack of comment and missing test for a pointer in the API. Daniel
* xmlschemastypes.c: fixed a lack of comment and missing test for
a pointer in the API.
Daniel
diff --git a/xmlschemastypes.c b/xmlschemastypes.c
index 8513449..52dceaa 100644
--- a/xmlschemastypes.c
+++ b/xmlschemastypes.c
@@ -5083,9 +5083,19 @@
return (0);
}
+/**
+ * xmlSchemaGetValType:
+ * @val: a schemas value
+ *
+ * Accessor for the type of a value
+ *
+ * Returns the xmlSchemaValType of the value
+ */
xmlSchemaValType
xmlSchemaGetValType(xmlSchemaValPtr val)
{
+ if (val == NULL)
+ return(XML_SCHEMAS_UNKNOWN);
return (val->type);
}