1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-04 12:58:17 +03:00

never commit without running make tests first ! Daniel

* xmlreader.c: never commit without running make tests first !
Daniel
This commit is contained in:
Daniel Veillard 2004-04-29 18:45:42 +00:00
parent e2161a699b
commit 6f379a7bf1
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Thu Apr 29 21:47:23 CEST 2004 Daniel Veillard <daniel@veillard.com>
* xmlreader.c: never commit without running make tests first !
Thu Apr 29 20:15:20 CEST 2004 Daniel Veillard <daniel@veillard.com>
* xmlreader.c: fix a nasty problem with reading over the end

View File

@ -1179,8 +1179,6 @@ xmlTextReaderRead(xmlTextReaderPtr reader) {
fprintf(stderr, "\nREAD ");
DUMP_READER
#endif
if (reader->mode == XML_TEXTREADER_DONE)
return(0);
reader->curnode = NULL;
if (reader->mode == XML_TEXTREADER_MODE_INITIAL) {
reader->mode = XML_TEXTREADER_MODE_INTERACTIVE;
@ -1217,8 +1215,12 @@ xmlTextReaderRead(xmlTextReaderPtr reader) {
oldnode = reader->node;
get_next_node:
if (reader->node == NULL)
return(-1);
if (reader->node == NULL) {
if (reader->mode == XML_TEXTREADER_DONE)
return(0);
else
return(-1);
}
/*
* If we are not backtracking on ancestors or examined nodes,