1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-25 23:21:26 +03:00

trying to fix #129692 xmlTextReaderExpand() when using an

* xmlreader.c: trying to fix #129692 xmlTextReaderExpand() when
  using an xmlReaderWalker()
Daniel
This commit is contained in:
Daniel Veillard 2003-12-19 17:26:28 +00:00
parent a0e7e93464
commit f40c1ce95d
2 changed files with 11 additions and 5 deletions

View File

@ -1,9 +1,13 @@
Fri Dec 19 18:24:02 CET 2003 Daniel Veillard <daniel@veillard.com>
* xmlreader.c: trying to fix #129692 xmlTextReaderExpand() when
using an xmlReaderWalker()
Thu Dec 18 20:10:34 MST 2003 John Fleck <jfleck@inkstain.net>
* tree.c fix misc. typos in doc comments
* include/libxml/tree.h elaborate on macro define doc
comments
* doc/* rebuild docs
* tree.c: fix misc. typos in doc comments
* include/libxml/tree.h: elaborate on macro define doc comments
* doc/*: rebuild docs
Wed Dec 17 16:07:33 CET 2003 Daniel Veillard <daniel@veillard.com>

View File

@ -1482,10 +1482,12 @@ xmlTextReaderReadState(xmlTextReaderPtr reader) {
*/
xmlNodePtr
xmlTextReaderExpand(xmlTextReaderPtr reader) {
if ((reader == NULL) || (reader->node == NULL) || (reader->ctxt == NULL))
if ((reader == NULL) || (reader->node == NULL))
return(NULL);
if (reader->doc != NULL)
return(reader->node);
if (reader->ctxt == NULL)
return(NULL);
if (xmlTextReaderDoExpand(reader) < 0)
return(NULL);
return(reader->node);