static volatile MagickBooleanType
instantiate_magickcore = MagickFalse,
- magickcore_signal_in_progress = MagickFalse;
+ magickcore_signal_in_progress = MagickFalse,
+ magick_list_initialized = MagickFalse;
\f
/*
Forward declarations.
static MagickBooleanType IsMagickTreeInstantiated(ExceptionInfo *exception)
{
- if (magick_list == (SplayTreeInfo *) NULL)
+ if (magick_list_initialized == MagickFalse)
{
if (magick_semaphore == (SemaphoreInfo *) NULL)
ActivateSemaphoreInfo(&magick_semaphore);
LockSemaphoreInfo(magick_semaphore);
- if (magick_list == (SplayTreeInfo *) NULL)
+ if (magick_list_initialized == MagickFalse)
{
magick_list=NewSplayTree(CompareSplayTreeString,(void *(*)(void *))
NULL,DestroyMagickNode);
#if !defined(MAGICKCORE_BUILD_MODULES)
RegisterStaticModules();
#endif
+ magick_list_initialized=MagickTrue;
}
UnlockSemaphoreInfo(magick_semaphore);
}