never commit without running make tests first ! Daniel
* xmlreader.c: never commit without running make tests first !
Daniel
diff --git a/ChangeLog b/ChangeLog
index 50bf70b..93ba004 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/xmlreader.c b/xmlreader.c
index 75b73ff..2c03b0b 100644
--- a/xmlreader.c
+++ b/xmlreader.c
@@ -1179,8 +1179,6 @@
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 @@
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,