1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

catalog: Set xmlCatalogInitialized after setting default catalog

This commit is contained in:
Nick Wellnhofer 2024-08-19 21:15:28 +02:00
parent 8625db2892
commit 0bb0012e98

View File

@ -3128,6 +3128,7 @@ xmlLoadCatalog(const char *filename)
xmlDefaultCatalog = catal;
xmlRMutexUnlock(&xmlCatalogMutex);
xmlCatalogInitialized = 1;
return(0);
}
@ -3348,6 +3349,7 @@ xmlCatalogAdd(const xmlChar *type, const xmlChar *orig, const xmlChar *replace)
orig, NULL, xmlCatalogDefaultPrefer, NULL);
}
xmlRMutexUnlock(&xmlCatalogMutex);
xmlCatalogInitialized = 1;
return(0);
}