From: Dirk Lemstra Date: Fri, 7 Sep 2018 07:25:17 +0000 (+0200) Subject: Minor refactoring. X-Git-Tag: 7.0.8-12~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35b39d599afe33e08c2df50c2422501281c2b491;p=imagemagick Minor refactoring. --- diff --git a/coders/psd.c b/coders/psd.c index ffbfe59b1..7066ff55b 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -769,7 +769,7 @@ static StringInfo *ParseImageResourceBlocks(Image *image, name_length; unsigned int - value; + count; unsigned short id, @@ -792,8 +792,8 @@ static StringInfo *ParseImageResourceBlocks(Image *image, p+=name_length; if (p > (blocks+length-4)) break; - p=PushLongPixel(MSBEndian,p,&value); - offset=(ssize_t) value; + p=PushLongPixel(MSBEndian,p,&count); + offset=(ssize_t) count; if (((p+offset) < blocks) || ((p+offset) > (blocks+length))) break; switch (id) @@ -1042,9 +1042,7 @@ static MagickBooleanType ReadPSDChannelPixels(Image *image, else { ssize_t - bit; - - ssize_t + bit, number_bits; number_bits=(ssize_t) image->columns-x;