]> granicus.if.org Git - php/commitdiff
- #38214, gif interlace never works
authorPierre Joye <pajoye@php.net>
Wed, 26 Jul 2006 10:03:09 +0000 (10:03 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 26 Jul 2006 10:03:09 +0000 (10:03 +0000)
ext/gd/libgd/gd_gif_out.c

index 651df90d4f80de593a409b44920b4c54d9a49d78..1fe36880a43d6a6c8ff8e55b7387c88f4e0a21ba 100644 (file)
@@ -264,10 +264,12 @@ GIFEncode(gdIOCtxPtr fp, int GWidth, int GHeight, int GInterlace, int Background
         int ColorMapSize;
         int InitCodeSize;
         int i;
-       GifCtx ctx;
+               GifCtx ctx;
+
+               memset(&ctx, 0, sizeof(ctx));
         ctx.Interlace = GInterlace;
-       ctx.in_count = 1;
-       memset(&ctx, 0, sizeof(ctx));
+               ctx.in_count = 1;
+
         ColorMapSize = 1 << BitsPerPixel;
 
         RWidth = ctx.Width = GWidth;