Commit 364789a6 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

avoid a problem in catalog cleanup on SMP if catalogs were not

* catalog.c: avoid a problem in catalog cleanup on SMP if
  catalogs were not initialized.
Daniel
parent 8146394d
Tue Oct 16 08:43:43 EDT 2001 Daniel Veillard <daniel@veillard.com>
* catalog.c: avoid a problem in catalog cleanup on SMP if
catalogs were not initialized.
Tue Oct 16 14:33:19 CEST 2001 Daniel Veillard <daniel@veillard.com>
* catalog.c xpath.c: trying to cleanup the not thread safe
......
......@@ -2869,6 +2869,9 @@ xmlLoadCatalogs(const char *pathss) {
*/
void
xmlCatalogCleanup(void) {
if (xmlCatalogInitialized == 0)
return;
xmlRMutexLock(xmlCatalogMutex);
if (xmlDebugCatalogs)
xmlGenericError(xmlGenericErrorContext,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment