Skip to content

Commit

Permalink
Silenced warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Nov 11, 2022
1 parent 2b3d452 commit b1039b6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions magick/mime.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,9 @@ static LinkedListInfo *AcquireMimeCache(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 @@ -179,15 +175,17 @@ static LinkedListInfo *AcquireMimeCache(const char *filename,
option=(const StringInfo *) GetNextValueInLinkedList(options);
while (option != (const StringInfo *) NULL)
{
status&=LoadMimeCache(cache,(const char *)
(void) LoadMimeCache(cache, (const char *)
GetStringInfoDatum(option),GetStringInfoPath(option),0,exception);
option=(const StringInfo *) GetNextValueInLinkedList(options);
}
options=DestroyConfigureOptions(options);
}
#else
magick_unreferenced(filename);
#endif
if (IsLinkedListEmpty(cache) != MagickFalse)
status&=LoadMimeCache(cache,MimeMap,"built-in",0,exception);
(void) LoadMimeCache(cache,MimeMap,"built-in",0,exception);
return(cache);
}

Expand Down

0 comments on commit b1039b6

Please sign in to comment.