From 82ab81e92ba902bf82b58d04f0b6924d2061b696 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Mon, 12 Mar 2001 21:11:21 +0000 Subject: [PATCH] - 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 --- ChangeLog | 6 ++++++ parser.c | 18 ------------------ 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/ChangeLog b/ChangeLog index 103d4921..87c52a88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Mar 12 22:09:40 CET 2001 Daniel Veillard + + * 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 * xpath.c: ptittom found a small bug in UnaryExpr diff --git a/parser.c b/parser.c index bc850208..deb02d28 100644 --- a/parser.c +++ b/parser.c @@ -7529,24 +7529,6 @@ xmlParseTryOrFinish(xmlParserCtxtPtr ctxt, int terminate) { /* * 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;