mxmlElementSetAttrf() did not work (STR #57)

pull/193/head
Michael R Sweet 17 years ago
parent d6d842e60a
commit 658c6bd661
  1. 1
      CHANGES
  2. 2
      doc/relnotes.html
  3. 2
      mxml-attr.c

@ -4,6 +4,7 @@ CHANGES - 2007-09-15
CHANGES IN Mini-XML 2.4
- Added mxmlElementDeleteAttr() function (STR #59)
- mxmlElementSetAttrf() did not work (STR #57)
- mxmlLoad*() incorrectly treated declarations as parent
elements (STR #56)
- mxmlLoad*() incorrectly allowed attributes without values

@ -11,6 +11,8 @@ hspace="10" width="100" height="100" alt="B"></a>Release Notes</h1>
<li>Added mxmlElementDeleteAttr() function (STR #59)</li>
<li>mxmlElementSetAttrf() did not work (STR #57)</li>
<li>mxmlLoad*() incorrectly treated declarations as parent
elements (STR #56)</li>

@ -239,7 +239,7 @@ mxmlElementSetAttrf(mxml_node_t *node, /* I - Element node */
value = _mxml_vstrdupf(format, ap);
va_end(ap);
if (value)
if (!value)
mxml_error("Unable to allocate memory for attribute '%s' in element %s!",
name, node->value.element.name);
else if (mxml_set_attr(node, name, value))

Loading…
Cancel
Save