Skip to content

Commit cd6e105

Browse files
author
Cristy
committed
correct null reference
1 parent 3fb6732 commit cd6e105

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

coders/icon.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,9 @@ static Image *Read1XImage(Image *image,ExceptionInfo *exception)
250250
(void) ReadBlobLSBShort(image); /* cursor color */
251251
if (((rows != 32) && (rows != 64)) || ((columns != 32) && (columns != 64)))
252252
{
253-
image=DestroyImageList(image);
254-
ThrowImageException(CorruptImageError,"ImproperImageHeader");
253+
(void) ThrowMagickException(exception,GetMagickModule(),CorruptImageError,
254+
"ImproperImageHeader","`%s'",image->filename);
255+
return(DestroyImageList(image));
255256
}
256257
/*
257258
Convert bitmap scanline.

filters/analyze.c

-6
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@
3636
/*
3737
Include declarations.
3838
*/
39-
#include <stdio.h>
40-
#include <stdlib.h>
41-
#include <string.h>
42-
#include <time.h>
43-
#include <assert.h>
44-
#include <math.h>
4539
#include "magick/studio.h"
4640
#include "magick/MagickCore.h"
4741

0 commit comments

Comments
 (0)