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

index 901647aa7ca11d6f7192dfdcf78f74ef9ca1c0cb..413f4ebd7b6951fe33d594874f2c653832159d5a 100644 (file)
@@ -407,6 +407,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);