aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2004-07-28 07:40:12 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2004-07-28 07:40:12 +0000
commit9f797abdb9c0ce9ad20564a302fa8fe273327223 (patch)
tree1920aefcc7f1bbe6f07699d0d2ee9953699f39b3 /error.c
parent30fe43f6144de60a901cd2bcc1ba92b5fd3df236 (diff)
downloadandroid_external_libxml2-9f797abdb9c0ce9ad20564a302fa8fe273327223.tar.gz
android_external_libxml2-9f797abdb9c0ce9ad20564a302fa8fe273327223.tar.bz2
android_external_libxml2-9f797abdb9c0ce9ad20564a302fa8fe273327223.zip
implemented patches supplied by Olivier Andrieu (bug 148588), plus made
* SAX2.c, error.c, parser.c, tree.c, xmlreader.c: implemented patches supplied by Olivier Andrieu (bug 148588), plus made some further enhancements, to correct some problems with out of memory conditions. * testOOM.c: improved with patches from Olivier Andrieu
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index 2e903dc4..a79e2142 100644
--- a/error.c
+++ b/error.c
@@ -552,7 +552,7 @@ __xmlRaiseError(xmlStructuredErrorFunc schannel,
/*
* Find the callback channel if channel param is NULL
*/
- if ((ctxt != NULL) && (channel == NULL) && (xmlStructuredError == NULL)) {
+ if ((ctxt != NULL) && (channel == NULL) && (xmlStructuredError == NULL) && (ctxt->sax != NULL)) {
if (level == XML_ERR_WARNING)
channel = ctxt->sax->warning;
else