]> granicus.if.org Git - imagemagick/commitdiff
The i variable must be private in a thread loop
authorCristy <urban-warrior@imagemagick.org>
Wed, 2 Aug 2017 15:13:35 +0000 (11:13 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 2 Aug 2017 15:13:35 +0000 (11:13 -0400)
MagickCore/attribute.c

index 413f4ebd7b6951fe33d594874f2c653832159d5a..32d9fd7e2ee4226f41710598df4ccd83e6c85be8 100644 (file)
@@ -467,6 +467,9 @@ MagickExport size_t GetImageDepth(const Image *image,ExceptionInfo *exception)
       continue;
     for (x=0; x < (ssize_t) image->columns; x++)
     {
+      register ssize_t
+        i;
+
       if (GetPixelWriteMask(image,p) == 0)
         {
           p+=GetPixelChannels(image);