diff --git a/CHANGES b/CHANGES index 3cf5ae1..c031cc7 100644 --- a/CHANGES +++ b/CHANGES @@ -1,8 +1,11 @@ -CHANGES - 04/24/2005 +CHANGES - 05/14/2005 -------------------- CHANGES IN Mini-XML 2.2.1 + - mxmlNewInteger(), mxmlNewOpaque(), mxmlNewReal(), + mxmlNewText(), and mxmlNewTextf() incorrectly required + a parent node (STR #22) - Fixed an XML output bug in mxmldoc. - The "make install" target now uses the install command to set the proper permissions on UNIX/Linux/OSX. diff --git a/mxml-node.c b/mxml-node.c index f121fbc..713c2aa 100644 --- a/mxml-node.c +++ b/mxml-node.c @@ -365,13 +365,6 @@ mxmlNewInteger(mxml_node_t *parent, /* I - Parent node or MXML_NO_PARENT */ fprintf(stderr, "mxmlNewInteger(parent=%p, integer=%d)\n", parent, integer); #endif /* DEBUG */ - /* - * Range check input... - */ - - if (!parent) - return (NULL); - /* * Create the node and set the element name... */ @@ -408,7 +401,7 @@ mxmlNewOpaque(mxml_node_t *parent, /* I - Parent node or MXML_NO_PARENT */ * Range check input... */ - if (!parent || !opaque) + if (!opaque) return (NULL); /* @@ -441,13 +434,6 @@ mxmlNewReal(mxml_node_t *parent, /* I - Parent node or MXML_NO_PARENT */ fprintf(stderr, "mxmlNewReal(parent=%p, real=%g)\n", parent, real); #endif /* DEBUG */ - /* - * Range check input... - */ - - if (!parent) - return (NULL); - /* * Create the node and set the element name... */ @@ -486,7 +472,7 @@ mxmlNewText(mxml_node_t *parent, /* I - Parent node or MXML_NO_PARENT */ * Range check input... */ - if (!parent || !string) + if (!string) return (NULL); /* @@ -532,7 +518,7 @@ mxmlNewTextf(mxml_node_t *parent, /* I - Parent node or MXML_NO_PARENT */ * Range check input... */ - if (!parent || !format) + if (!format) return (NULL); /*