mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
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
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
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>
|
Thu Mar 31 16:11:10 CEST 2005 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* parser.c: fix potential crash if ctxt->sax->ignorableWhitespace
|
* parser.c: fix potential crash if ctxt->sax->ignorableWhitespace
|
||||||
|
|||||||
1
SAX.c
1
SAX.c
@@ -116,7 +116,6 @@ inithtmlDefaultSAXHandler(xmlSAXHandlerV1 *hdlr)
|
|||||||
hdlr->cdataBlock = xmlSAX2CDataBlock;
|
hdlr->cdataBlock = xmlSAX2CDataBlock;
|
||||||
hdlr->ignorableWhitespace = xmlSAX2IgnorableWhitespace;
|
hdlr->ignorableWhitespace = xmlSAX2IgnorableWhitespace;
|
||||||
hdlr->processingInstruction = xmlSAX2ProcessingInstruction;
|
hdlr->processingInstruction = xmlSAX2ProcessingInstruction;
|
||||||
hdlr->processingInstruction = NULL;
|
|
||||||
hdlr->comment = xmlSAX2Comment;
|
hdlr->comment = xmlSAX2Comment;
|
||||||
hdlr->warning = xmlParserWarning;
|
hdlr->warning = xmlParserWarning;
|
||||||
hdlr->error = xmlParserError;
|
hdlr->error = xmlParserError;
|
||||||
|
|||||||
@@ -825,7 +825,7 @@ XMLPUBFUN int XMLCALL
|
|||||||
*/
|
*/
|
||||||
#ifdef LIBXML_SAX1_ENABLED
|
#ifdef LIBXML_SAX1_ENABLED
|
||||||
XMLPUBFUN xmlDocPtr XMLCALL
|
XMLPUBFUN xmlDocPtr XMLCALL
|
||||||
xmlParseDoc (xmlChar *cur);
|
xmlParseDoc (const xmlChar *cur);
|
||||||
XMLPUBFUN xmlDocPtr XMLCALL
|
XMLPUBFUN xmlDocPtr XMLCALL
|
||||||
xmlParseFile (const char *filename);
|
xmlParseFile (const char *filename);
|
||||||
XMLPUBFUN xmlDocPtr XMLCALL
|
XMLPUBFUN xmlDocPtr XMLCALL
|
||||||
@@ -877,7 +877,7 @@ XMLPUBFUN int XMLCALL
|
|||||||
int size);
|
int size);
|
||||||
XMLPUBFUN xmlDocPtr XMLCALL
|
XMLPUBFUN xmlDocPtr XMLCALL
|
||||||
xmlSAXParseDoc (xmlSAXHandlerPtr sax,
|
xmlSAXParseDoc (xmlSAXHandlerPtr sax,
|
||||||
xmlChar *cur,
|
const xmlChar *cur,
|
||||||
int recovery);
|
int recovery);
|
||||||
XMLPUBFUN xmlDocPtr XMLCALL
|
XMLPUBFUN xmlDocPtr XMLCALL
|
||||||
xmlSAXParseMemory (xmlSAXHandlerPtr sax,
|
xmlSAXParseMemory (xmlSAXHandlerPtr sax,
|
||||||
|
|||||||
4
parser.c
4
parser.c
@@ -12212,7 +12212,7 @@ xmlCreateDocParserCtxt(const xmlChar *cur) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
xmlDocPtr
|
xmlDocPtr
|
||||||
xmlSAXParseDoc(xmlSAXHandlerPtr sax, xmlChar *cur, int recovery) {
|
xmlSAXParseDoc(xmlSAXHandlerPtr sax, const xmlChar *cur, int recovery) {
|
||||||
xmlDocPtr ret;
|
xmlDocPtr ret;
|
||||||
xmlParserCtxtPtr ctxt;
|
xmlParserCtxtPtr ctxt;
|
||||||
xmlSAXHandlerPtr oldsax = NULL;
|
xmlSAXHandlerPtr oldsax = NULL;
|
||||||
@@ -12253,7 +12253,7 @@ xmlSAXParseDoc(xmlSAXHandlerPtr sax, xmlChar *cur, int recovery) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
xmlDocPtr
|
xmlDocPtr
|
||||||
xmlParseDoc(xmlChar *cur) {
|
xmlParseDoc(const xmlChar *cur) {
|
||||||
return(xmlSAXParseDoc(NULL, cur, 0));
|
return(xmlSAXParseDoc(NULL, cur, 0));
|
||||||
}
|
}
|
||||||
#endif /* LIBXML_SAX1_ENABLED */
|
#endif /* LIBXML_SAX1_ENABLED */
|
||||||
|
|||||||
Reference in New Issue
Block a user