Commit f5993028 authored by Michael R Sweet's avatar Michael R Sweet

Don't allow attributes without values.

parent 7da48b7d
......@@ -3,6 +3,8 @@ CHANGES - 2007-09-09
CHANGES IN Mini-XML 2.3.1
- mxmlLoad*() incorrectly allowed attributes without values
(STR #47)
- Fixed Visual C++ build problems (STR #49)
- mxmlLoad*() did not return NULL when an element contained
an error (STR #46)
......
......@@ -2255,7 +2255,7 @@ mxml_parse_element(
{
mxml_error("Missing value for attribute '%s' in element %s!",
name, node->value.element.name);
return (EOF);
goto error;
}
if (ch == '\'' || ch == '\"')
......@@ -2315,11 +2315,9 @@ mxml_parse_element(
}
else
{
/*
* Set the attribute with a NULL value...
*/
mxmlElementSetAttr(node, name, NULL);
mxml_error("Missing value for attribute '%s' in element %s!",
name, node->value.element.name);
goto error;
}
/*
......
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