Skip to content

Commit

Permalink
- parser.c: and Matt Sergeant found one in the XML push
Browse files Browse the repository at this point in the history
  parser (erroneous check I forgot to remove when I fixed the
  main parser).
Daniel
  • Loading branch information
Daniel Veillard committed Mar 12, 2001
1 parent 68d7b67 commit 82ab81e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Mon Mar 12 22:09:40 CET 2001 Daniel Veillard <[email protected]>

* 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 <[email protected]>

* xpath.c: ptittom found a small bug in UnaryExpr
Expand Down
18 changes: 0 additions & 18 deletions parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 82ab81e

Please sign in to comment.