]> granicus.if.org Git - imagemagick/commitdiff
Minor refactoring.
authorDirk Lemstra <dirk@git.imagemagick.org>
Fri, 7 Sep 2018 07:25:17 +0000 (09:25 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Fri, 7 Sep 2018 07:25:17 +0000 (09:25 +0200)
coders/psd.c

index ffbfe59b1434214c3ae3398923068eb1836ab0b0..7066ff55b324c4ebc2bb3fe5f63ab1e4634a58ca 100644 (file)
@@ -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;