- parser.c: and Matt Sergeant found one in the XML push
parser (erroneous check I forgot to remove when I fixed the
main parser).
Daniel
diff --git a/ChangeLog b/ChangeLog
index 103d492..87c52a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Mar 12 22:09:40 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
+
+ * parser.c: and Matt Sergeant found one in the XML push
+ parser (erroneous check I forgot to remove when I fixed the
+ main parser).
+
Mon Mar 12 19:19:04 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* xpath.c: ptittom found a small bug in UnaryExpr
diff --git a/parser.c b/parser.c
index bc85020..deb02d2 100644
--- a/parser.c
+++ b/parser.c
@@ -7529,24 +7529,6 @@
/*
* Very first chars read from the document flow.
*/
- cur = ctxt->input->cur[0];
- if (IS_BLANK(cur)) {
- if ((ctxt->sax) && (ctxt->sax->setDocumentLocator))
- ctxt->sax->setDocumentLocator(ctxt->userData,
- &xmlDefaultSAXLocator);
- ctxt->errNo = XML_ERR_DOCUMENT_START;
- if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
- ctxt->sax->error(ctxt->userData,
- "Extra spaces at the beginning of the document are not allowed\n");
- ctxt->wellFormed = 0;
- ctxt->disableSAX = 1;
- SKIP_BLANKS;
- ret++;
- if (ctxt->input->buf == NULL)
- avail = ctxt->input->length - (ctxt->input->cur - ctxt->input->base);
- else
- avail = ctxt->input->buf->buffer->use - (ctxt->input->cur - ctxt->input->base);
- }
if (avail < 2)
goto done;