mirror of
https://gitea.psi.ch/ELOG/mxml.git
synced 2026-09-09 01:23:22 +00:00
Fixed bug with wrong interpretation of empty element such as <TEXT></TEXT>
This commit is contained in:
parent
7bce4afd0a
commit
7947f08b0e
2
mxml.c
2
mxml.c
@ -1483,7 +1483,7 @@ PMXML_NODE mxml_parse_buffer(const char *buf, char *error, int error_size)
|
|||||||
if (!*pv)
|
if (!*pv)
|
||||||
return read_error(HERE, "Unexpected end of file");
|
return read_error(HERE, "Unexpected end of file");
|
||||||
|
|
||||||
if (*pv == '<') {
|
if (*pv == '<' && *(pv+1) != '/') {
|
||||||
|
|
||||||
/* start new subtree */
|
/* start new subtree */
|
||||||
ptree = pnew;
|
ptree = pnew;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user