From 35b39d599afe33e08c2df50c2422501281c2b491 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Fri, 7 Sep 2018 09:25:17 +0200 Subject: [PATCH] Minor refactoring. --- coders/psd.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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; -- 2.40.0