Skip to content

Commit

Permalink
Added missing check.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Oct 17, 2021
1 parent 2ad55fa commit 6c90dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MagickCore/attribute.c
Expand Up @@ -1580,7 +1580,7 @@ MagickExport ImageType IdentifyImageGray(const Image *image,
assert(image->signature == MagickCoreSignature);
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
if (IsImageGray(image))
if (IsImageGray(image) != MagickFalse)
return(image->type);
if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse)
return(UndefinedType);
Expand Down

0 comments on commit 6c90dd8

Please sign in to comment.