Commit 6f379a7b authored by Daniel Veillard's avatar Daniel Veillard
Browse files

never commit without running make tests first ! Daniel

* xmlreader.c: never commit without running make tests first !
Daniel
parent e2161a69
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
......
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment