Fixed bug with wrong interpretation of empty element such as <TEXT></TEXT>

This commit is contained in:
2007-05-10 08:59:44 +00:00
parent 7bce4afd0a
commit 7947f08b0e
+1 -1
View File
@@ -1483,7 +1483,7 @@ PMXML_NODE mxml_parse_buffer(const char *buf, char *error, int error_size)
if (!*pv)
return read_error(HERE, "Unexpected end of file");
if (*pv == '<') {
if (*pv == '<' && *(pv+1) != '/') {
/* start new subtree */
ptree = pnew;