Commit 658c6bd6 authored by Michael R Sweet's avatar Michael R Sweet

mxmlElementSetAttrf() did not work (STR #57)

parent d6d842e6
......@@ -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))
......
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