Skip to content
Browse files

- 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
  • Loading branch information...
1 parent 68d7b67 commit 82ab81e92ba902bf82b58d04f0b6924d2061b696 Daniel Veillard committed Mar 12, 2001
Showing with 6 additions and 18 deletions.
  1. +6 −0 ChangeLog
  2. +0 −18 parser.c
View
6 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
View
18 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;

0 comments on commit 82ab81e

Please sign in to comment.
Something went wrong with that request. Please try again.