From: Dirk Lemstra Date: Sun, 17 Sep 2017 04:11:22 +0000 (+0200) Subject: Micro optimization. X-Git-Tag: 7.0.7-3~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17836d4fd537f93a29417c844be02de6a4cff64e;p=imagemagick Micro optimization. --- diff --git a/MagickCore/splay-tree.c b/MagickCore/splay-tree.c index 5f55bea8f..bb7c1f943 100644 --- a/MagickCore/splay-tree.c +++ b/MagickCore/splay-tree.c @@ -882,8 +882,8 @@ MagickExport const void *GetRootValueFromSplayTree(SplayTreeInfo *splay_tree) assert(splay_tree->signature == MagickCoreSignature); if (splay_tree->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"..."); + value=(const void *) NULL; LockSemaphoreInfo(splay_tree->semaphore); - value=NULL; if (splay_tree->root != (NodeInfo *) NULL) value=splay_tree->root->value; UnlockSemaphoreInfo(splay_tree->semaphore);