summaryrefslogtreecommitdiff
path: root/catalog.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-11-09 16:17:02 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-11-09 16:17:02 +0000
commitd0cf7f6eea7331cc398c232d7879e4239d989e14 (patch)
treee1a8f3de1c53681d272a2768ba3bd4e17f5abc24 /catalog.c
parenta521d287516f2dc93a8fe540c5883ffc39cb5024 (diff)
downloadlibxml2-d0cf7f6eea7331cc398c232d7879e4239d989e14.tar.gz
integrated in "make tests" added -q option, and more conditional features
* Makefile.am gentest.py testapi.c: integrated in "make tests" added -q option, and more conditional features fixes * catalog.c debugXML.c parser.c testThreads.c xmllint.c xmlschemastypes.c xmlwriter.cinclude/libxml/catalog.h include/libxml/debugXML.h: various compilation and conditional cleanups. * doc/*: regenerated Daniel
Diffstat (limited to 'catalog.c')
-rw-r--r--catalog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/catalog.c b/catalog.c
index 4ca29ac6..3168efd1 100644
--- a/catalog.c
+++ b/catalog.c
@@ -878,9 +878,11 @@ xmlParseCatalogFile(const char *filename) {
ctxt = xmlNewParserCtxt();
if (ctxt == NULL) {
+#ifdef LIBXML_SAX1_ENABLED
if (xmlDefaultSAXHandler.error != NULL) {
xmlDefaultSAXHandler.error(NULL, "out of memory\n");
}
+#endif
return(NULL);
}