From: dirk Date: Sun, 25 May 2014 19:17:07 +0000 (+0000) Subject: Fixed not null check. X-Git-Tag: 7.0.1-0~2284 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7f405df4a0eee396823af513910503513c24acf;p=imagemagick Fixed not null check. --- diff --git a/MagickCore/stream.c b/MagickCore/stream.c index d32ae859d..bd23f4f82 100644 --- a/MagickCore/stream.c +++ b/MagickCore/stream.c @@ -444,7 +444,7 @@ static MagickBooleanType GetOneAuthenticPixelFromStream(Image *image, const ssize_t x,const ssize_t y,Quantum *pixel,ExceptionInfo *exception) { register Quantum - *q; + *p; register ssize_t i; @@ -452,8 +452,8 @@ static MagickBooleanType GetOneAuthenticPixelFromStream(Image *image, assert(image != (Image *) NULL); assert(image->signature == MagickSignature); (void) memset(pixel,0,MaxPixelChannels*sizeof(*pixel)); - q=GetAuthenticPixelsStream(image,x,y,1,1,exception); - if (q != (Quantum *) NULL) + p=GetAuthenticPixelsStream(image,x,y,1,1,exception); + if (p == (Quantum *) NULL) { pixel[RedPixelChannel]=ClampToQuantum(image->background_color.red); pixel[GreenPixelChannel]=ClampToQuantum(image->background_color.green); @@ -465,7 +465,7 @@ static MagickBooleanType GetOneAuthenticPixelFromStream(Image *image, for (i=0; i < (ssize_t) GetPixelChannels(image); i++) { PixelChannel channel=GetPixelChannelChannel(image,i); - pixel[channel]=q[i]; + pixel[channel]=p[i]; } return(MagickTrue); }