aboutsummaryrefslogtreecommitdiffstats
path: root/catalog.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-11-05 14:21:47 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-11-05 14:21:47 +0000
commitffe09c94fd1395c6b7b44eba506716d7fb4b39aa (patch)
tree71c0e1d02e660c5e8dc242f54cb09ce7c2237d0e /catalog.c
parentad661b9effa896cd55f3589683fda8a7b6bba121 (diff)
downloadandroid_external_libxml2-ffe09c94fd1395c6b7b44eba506716d7fb4b39aa.tar.gz
android_external_libxml2-ffe09c94fd1395c6b7b44eba506716d7fb4b39aa.tar.bz2
android_external_libxml2-ffe09c94fd1395c6b7b44eba506716d7fb4b39aa.zip
dohhhh XML catalog add and remove ops were broken too. Side effect of the
* catalog.c: dohhhh XML catalog add and remove ops were broken too. Side effect of the progressive catalog loading Daniel
Diffstat (limited to 'catalog.c')
-rw-r--r--catalog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/catalog.c b/catalog.c
index 3b6a3e6b..e843d898 100644
--- a/catalog.c
+++ b/catalog.c
@@ -1297,6 +1297,9 @@ xmlAddXMLCatalog(xmlCatalogEntryPtr catal, const xmlChar *type,
((catal->type != XML_CATA_CATALOG) &&
(catal->type != XML_CATA_BROKEN_CATALOG)))
return(-1);
+ if (catal->children == NULL) {
+ xmlFetchXMLCatalogFile(catal);
+ }
typ = xmlGetXMLCatalogEntryType(type);
if (typ == XML_CATA_NONE) {
if (xmlDebugCatalogs)
@@ -1357,6 +1360,9 @@ xmlDelXMLCatalog(xmlCatalogEntryPtr catal, const xmlChar *value) {
return(-1);
if (value == NULL)
return(-1);
+ if (catal->children == NULL) {
+ xmlFetchXMLCatalogFile(catal);
+ }
/*
* Scan the children