Skip to content

Commit

Permalink
eliminate compiler exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Dec 29, 2023
1 parent 287ba31 commit 9b9eb2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions coders/bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1836,7 +1836,7 @@ static MagickBooleanType WriteBMPImage(const ImageInfo *image_info,Image *image)
*p;

const StringInfo
*profile;
*profile = (const StringInfo *) NULL;

MagickBooleanType
have_color_info,
Expand Down Expand Up @@ -2025,7 +2025,8 @@ static MagickBooleanType WriteBMPImage(const ImageInfo *image_info,Image *image)
}
bytes_per_line=4*((image->columns*bmp_info.bits_per_pixel+31)/32);
bmp_info.ba_offset=0;
profile=GetImageProfile(image,"icc");
if (type > 3)
profile=GetImageProfile(image,"icc");
have_color_info=(image->rendering_intent != UndefinedIntent) ||
(profile != (StringInfo *) NULL) || (image->gamma != 0.0) ? MagickTrue :
MagickFalse;
Expand Down
3 changes: 3 additions & 0 deletions magick/identify.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,9 @@ MagickExport MagickBooleanType IdentifyImage(Image *image,FILE *file,
struct tm
timestamp;

time_t
expired;

assert(image != (Image *) NULL);
assert(image->signature == MagickCoreSignature);
if (IsEventLogging() != MagickFalse)
Expand Down

0 comments on commit 9b9eb2c

Please sign in to comment.