Merge pull request #376 from Alcaro/master

Fix variable shadowing that makes the previous fix ineffective.
This commit is contained in:
Hans-Kristian Arntzen 2013-11-03 13:54:32 -08:00
commit c0e6fc9b9f

View File

@ -143,8 +143,8 @@ static struct rxml_attrib_node *rxml_parse_attrs(const char *str)
if (!end || end != (elem + strlen(elem) - 1))
goto end;
char *attrib = strdup_range_escape(elem, eq);
char *value = strdup_range_escape(eq + 2, end);
attrib = strdup_range_escape(elem, eq);
value = strdup_range_escape(eq + 2, end);
if (!attrib || !value)
goto end;