summaryrefslogtreecommitdiff
path: root/catalog.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-08-22 23:44:09 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-08-22 23:44:09 +0000
commite7ead2d2379fa933b064e4a138a267313d40988e (patch)
tree269c2c833822b2acbf2307bbc2a810b0f6ca0d27 /catalog.c
parentdc2cee29d094958139f409e30209f68953c9cb67 (diff)
downloadlibxml2-e7ead2d2379fa933b064e4a138a267313d40988e.tar.gz
added documentation about Catalog support, misses an API description
* doc/catalog.html doc/xml.html: added documentation about Catalog support, misses an API description * doc/html/*: reextracted the API pages Daniel
Diffstat (limited to 'catalog.c')
-rw-r--r--catalog.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/catalog.c b/catalog.c
index fba077b4..3ec98f8a 100644
--- a/catalog.c
+++ b/catalog.c
@@ -2182,6 +2182,13 @@ int
xmlCatalogAdd(const xmlChar *type, const xmlChar *orig, const xmlChar *replace) {
int res = -1;
+ if ((xmlDefaultXMLCatalogList == NULL) &&
+ (xmlStrEqual(type, BAD_CAST "catalog"))) {
+ xmlDefaultXMLCatalogList = xmlNewCatalogEntry(XML_CATA_CATALOG, NULL,
+ orig, xmlCatalogDefaultPrefer);
+ return(0);
+ }
+
if (!xmlCatalogInitialized)
xmlInitializeCatalog();