Skip to content

Commit

Permalink
Removed unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed May 24, 2024
1 parent f4415f8 commit f8b0247
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions coders/icon.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,16 +460,14 @@ static Image *ReadICONImage(const ImageInfo *image_info,
else
{
size_t
number_colors,
x_pixels,
y_pixels;
number_colors;

if (bits_per_pixel > 32)
ThrowICONReaderException(CorruptImageError,"ImproperImageHeader");
(void) ReadBlobLSBLong(image); /* compression */
(void) ReadBlobLSBLong(image); /* image_size */
x_pixels=ReadBlobLSBLong(image);
y_pixels=ReadBlobLSBLong(image);
(void) ReadBlobLSBLong(image); /* x_pixels */
(void) ReadBlobLSBLong(image); /* y_pixels */
number_colors=ReadBlobLSBLong(image);
if (number_colors > GetBlobSize(image))
ThrowICONReaderException(CorruptImageError,"InsufficientImageDataInFile");
Expand Down

0 comments on commit f8b0247

Please sign in to comment.