Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Nov 28, 2021
1 parent be1bc1d commit c611e8f
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions magick/delegate.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,7 @@ static LinkedListInfo *AcquireDelegateCache(const char *filename,
LinkedListInfo
*cache;

MagickStatusType
status;

cache=NewLinkedList(0);
if (cache == (LinkedListInfo *) NULL)
ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
status=MagickTrue;
#if !MAGICKCORE_ZERO_CONFIGURATION_SUPPORT
{
const StringInfo
Expand All @@ -206,16 +200,15 @@ static LinkedListInfo *AcquireDelegateCache(const char *filename,
option=(const StringInfo *) GetNextValueInLinkedList(options);
while (option != (const StringInfo *) NULL)
{
status&=LoadDelegateCache(cache,(const char *)
GetStringInfoDatum(option),GetStringInfoPath(option),0,exception);
(void) LoadDelegateCache(cache,(const char *) GetStringInfoDatum(option),
GetStringInfoPath(option),0,exception);
option=(const StringInfo *) GetNextValueInLinkedList(options);
}
options=DestroyConfigureOptions(options);
}
#endif
if (IsLinkedListEmpty(cache) != MagickFalse)
status&=LoadDelegateCache(cache,DelegateMap,"built-in",0,
exception);
(void) LoadDelegateCache(cache,DelegateMap,"built-in",0,exception);
return(cache);
}

Expand Down

0 comments on commit c611e8f

Please sign in to comment.