1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

fixed segfault when input file not present changed output formatting of

* xmlIO.c: fixed segfault when input file not present
* tree.c: changed output formatting of XML_CDATA_SECTION
  (bug 120917)
This commit is contained in:
William M. Brack
2003-10-19 10:01:59 +00:00
parent 76e95df055
commit 9ca682f527
3 changed files with 9 additions and 1 deletions

View File

@ -3083,6 +3083,7 @@ xmlDefaultExternalEntityLoader(const char *URL, const char *ID,
if (ret == NULL) {
xmlLoaderErr(ctxt, "failed to load external entity \"%s\"\n",
(const char *) resource);
return(NULL);
}
if ((ret->buf != NULL) && (ret->buf->readcallback == xmlIOHTTPRead)) {
const char *encoding;