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:
parent
e2161a699b
commit
6f379a7bf1
@ -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
|
||||
|
10
xmlreader.c
10
xmlreader.c
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user