Skip to content

Commit

Permalink
Simplify check
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Oct 25, 2023
1 parent 6e67e96 commit b1d589d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvips/foreign/magick.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ magick_sniff(const unsigned char *bytes, size_t length)
const MagicInfo *magic_info = GetMagicInfo(bytes, length, exception);
magick_destroy_exception(exception);

if (magic_info != NULL)
if (magic_info)
return GetMagicName(magic_info);

return NULL;
Expand Down

0 comments on commit b1d589d

Please sign in to comment.