mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-27 03:21:26 +03:00
fix a problem in some error case on Solaris when passed a NULL filename,
* parserInternals.c: fix a problem in some error case on Solaris when passed a NULL filename, pointed by Albert Chin. Daniel
This commit is contained in:
parent
b990008f05
commit
6e84bb28dd
@ -1,3 +1,8 @@
|
|||||||
|
Wed Oct 26 10:59:21 CEST 2005 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* parserInternals.c: fix a problem in some error case on Solaris
|
||||||
|
when passed a NULL filename, pointed by Albert Chin.
|
||||||
|
|
||||||
Tue Oct 25 14:34:58 CEST 2005 Daniel Veillard <daniel@veillard.com>
|
Tue Oct 25 14:34:58 CEST 2005 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* HTMLparser.c: script HTML parser error fix, corrects bug #319715
|
* HTMLparser.c: script HTML parser error fix, corrects bug #319715
|
||||||
|
@ -1492,8 +1492,13 @@ xmlNewInputFromFile(xmlParserCtxtPtr ctxt, const char *filename) {
|
|||||||
if (ctxt == NULL) return(NULL);
|
if (ctxt == NULL) return(NULL);
|
||||||
buf = xmlParserInputBufferCreateFilename(filename, XML_CHAR_ENCODING_NONE);
|
buf = xmlParserInputBufferCreateFilename(filename, XML_CHAR_ENCODING_NONE);
|
||||||
if (buf == NULL) {
|
if (buf == NULL) {
|
||||||
__xmlLoaderErr(ctxt, "failed to load external entity \"%s\"\n",
|
if (filename == NULL)
|
||||||
(const char *) filename);
|
__xmlLoaderErr(ctxt,
|
||||||
|
"failed to load external entity: NULL filename \n",
|
||||||
|
NULL);
|
||||||
|
else
|
||||||
|
__xmlLoaderErr(ctxt, "failed to load external entity \"%s\"\n",
|
||||||
|
(const char *) filename);
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user