Commit 1af55583 authored by William M. Brack's avatar William M. Brack
Browse files

fixed problem with reader state after processing attributes (bug 147993)

* xmlreader.c: fixed problem with reader state after
  processing attributes (bug 147993)
parent 1826d0a7
Thu Jul 22 10:14:48 PDT 2004 William Brack <wbrack@mmm.com.hk>
* xmlreader.c: fixed problem with reader state after
processing attributes (bug 147993)
Wed Jul 21 17:04:27 HKT 2004 William Brack <wbrack@mmm.com.hk>
 
* configure.in, Makefile.am: put in an auto* check for the
......
......@@ -1181,9 +1181,10 @@ xmlTextReaderRead(xmlTextReaderPtr reader) {
xmlTextReaderState oldstate = XML_TEXTREADER_START;
xmlNodePtr oldnode = NULL;
if (reader == NULL)
return(-1);
reader->curnode = NULL;
if (reader->doc != NULL)
return(xmlTextReaderReadTree(reader));
if (reader->ctxt == NULL)
......@@ -1195,7 +1196,6 @@ xmlTextReaderRead(xmlTextReaderPtr reader) {
fprintf(stderr, "\nREAD ");
DUMP_READER
#endif
reader->curnode = NULL;
if (reader->mode == XML_TEXTREADER_MODE_INITIAL) {
reader->mode = XML_TEXTREADER_MODE_INTERACTIVE;
/*
......
Markdown is supported
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