mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 03:55:04 +03:00
catalog: Set xmlCatalogInitialized after setting default catalog
This commit is contained in:
parent
8625db2892
commit
0bb0012e98
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user