1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-23 17:33:50 +03:00

reader: Fix xmlTextReaderReadString

Regressed in commit 7cbf609a.

Should fix #738.
This commit is contained in:
Nick Wellnhofer 2024-06-17 14:37:54 +02:00
parent 3c7c831c7c
commit 57004006ae

View File

@ -1754,7 +1754,10 @@ xmlTextReaderReadString(xmlTextReaderPtr reader)
switch (node->type) {
case XML_TEXT_NODE:
case XML_CDATA_SECTION_NODE:
break;
case XML_ELEMENT_NODE:
if (xmlTextReaderDoExpand(reader) == -1)
return(NULL);
break;
case XML_ATTRIBUTE_NODE:
/* TODO */