Commit 7331e5ca authored by Daniel Veillard's avatar Daniel Veillard
Browse files

fixed #172260 redundant assignment. fixed xmlSAXParseDoc() and

* SAX.c: fixed #172260 redundant assignment.
* parser.c include/libxml/parser.h: fixed xmlSAXParseDoc() and
  xmlParseDoc() signatures #172257.
Daniel
parent 32acf0c3
Thu Mar 31 16:57:18 CEST 2005 Daniel Veillard <daniel@veillard.com>
* SAX.c: fixed #172260 redundant assignment.
* parser.c include/libxml/parser.h: fixed xmlSAXParseDoc() and
xmlParseDoc() signatures #172257.
Thu Mar 31 16:11:10 CEST 2005 Daniel Veillard <daniel@veillard.com>
 
* parser.c: fix potential crash if ctxt->sax->ignorableWhitespace
......
......@@ -116,7 +116,6 @@ inithtmlDefaultSAXHandler(xmlSAXHandlerV1 *hdlr)
hdlr->cdataBlock = xmlSAX2CDataBlock;
hdlr->ignorableWhitespace = xmlSAX2IgnorableWhitespace;
hdlr->processingInstruction = xmlSAX2ProcessingInstruction;
hdlr->processingInstruction = NULL;
hdlr->comment = xmlSAX2Comment;
hdlr->warning = xmlParserWarning;
hdlr->error = xmlParserError;
......
......@@ -825,7 +825,7 @@ XMLPUBFUN int XMLCALL
*/
#ifdef LIBXML_SAX1_ENABLED
XMLPUBFUN xmlDocPtr XMLCALL
xmlParseDoc (xmlChar *cur);
xmlParseDoc (const xmlChar *cur);
XMLPUBFUN xmlDocPtr XMLCALL
xmlParseFile (const char *filename);
XMLPUBFUN xmlDocPtr XMLCALL
......@@ -877,7 +877,7 @@ XMLPUBFUN int XMLCALL
int size);
XMLPUBFUN xmlDocPtr XMLCALL
xmlSAXParseDoc (xmlSAXHandlerPtr sax,
xmlChar *cur,
const xmlChar *cur,
int recovery);
XMLPUBFUN xmlDocPtr XMLCALL
xmlSAXParseMemory (xmlSAXHandlerPtr sax,
......
......@@ -12212,7 +12212,7 @@ xmlCreateDocParserCtxt(const xmlChar *cur) {
*/
xmlDocPtr
xmlSAXParseDoc(xmlSAXHandlerPtr sax, xmlChar *cur, int recovery) {
xmlSAXParseDoc(xmlSAXHandlerPtr sax, const xmlChar *cur, int recovery) {
xmlDocPtr ret;
xmlParserCtxtPtr ctxt;
xmlSAXHandlerPtr oldsax = NULL;
......@@ -12253,7 +12253,7 @@ xmlSAXParseDoc(xmlSAXHandlerPtr sax, xmlChar *cur, int recovery) {
*/
xmlDocPtr
xmlParseDoc(xmlChar *cur) {
xmlParseDoc(const xmlChar *cur) {
return(xmlSAXParseDoc(NULL, cur, 0));
}
#endif /* LIBXML_SAX1_ENABLED */
......
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