Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
libxml2
Commits
6f379a7b
Commit
6f379a7b
authored
Apr 29, 2004
by
Daniel Veillard
Browse files
never commit without running make tests first ! Daniel
* xmlreader.c: never commit without running make tests first ! Daniel
parent
e2161a69
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
6f379a7b
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
...
...
xmlreader.c
View file @
6f379a7b
...
...
@@ -1179,8 +1179,6 @@ xmlTextReaderRead(xmlTextReaderPtr reader) {
fprintf
(
stderr
,
"
\n
READ "
);
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,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment