mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-25 23: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>
|
||||
|
||||
* 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);
|
||||
buf = xmlParserInputBufferCreateFilename(filename, XML_CHAR_ENCODING_NONE);
|
||||
if (buf == NULL) {
|
||||
__xmlLoaderErr(ctxt, "failed to load external entity \"%s\"\n",
|
||||
(const char *) filename);
|
||||
if (filename == NULL)
|
||||
__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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user