]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 20 May 2012 16:51:15 +0000 (16:51 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 20 May 2012 16:51:15 +0000 (16:51 +0000)
coders/gif.c

index 6d36205a5abc3e3e816031e4ceb93eb59ff27d5c..acee79e9c83369ac8c26e85b0b3e0f6ead1f5c0f 100644 (file)
@@ -1683,8 +1683,7 @@ static MagickBooleanType WriteGIFImage(const ImageInfo *image_info,Image *image,
             (void) WriteBlobByte(image,(unsigned char) 0x21);
             (void) WriteBlobByte(image,(unsigned char) 0xfe);
             value=GetImageProperty(image,"comment",exception);
-            p=value;
-            while (strlen(p) != 0)
+            for (p=value; strlen(p) != 0; )
             {
               count=MagickMin(strlen(p),255);
               (void) WriteBlobByte(image,(unsigned char) count);