xmlcatalog: Improved fix for #699

This commit is contained in:
Nick Wellnhofer 2024-08-19 20:02:47 +02:00
parent 4e3ce5c009
commit 208a4d026c

View File

@ -401,6 +401,13 @@ int main(int argc, char **argv) {
if ((ret < 0) && (create)) {
xmlCatalogAdd(BAD_CAST "catalog", BAD_CAST argv[i], NULL);
}
/*
* Catalogs are loaded lazily. Make sure that dumping works
* by the issuing a dummy request that forces the catalog to
* be loaded.
*/
xmlCatalogResolvePublic(BAD_CAST "");
}
break;
}