Commits

tabe  committed 4574f66

fixed #181.

  • Participants
  • Parent commits 70876ba
  • Branches GD-2.0

Comments (0)

Files changed (1)

File src/gd_gif_out.c

 	int i;
 	GifCtx ctx;
 
+	memset(&ctx, 0, sizeof(ctx));
+
 	ctx.Interlace = GInterlace;
 	ctx.in_count = 1;
 
-	memset(&ctx, 0, sizeof(ctx));
-
 	ColorMapSize = 1 << BitsPerPixel;
 
 	RWidth = ctx.Width = GWidth;
 	int i;
 	GifCtx ctx;
 
+	memset(&ctx, 0, sizeof(ctx));
+
 	ctx.Interlace = GInterlace;
 	ctx.in_count = 1;
 
-	memset(&ctx, 0, sizeof(ctx));
-
 	ColorMapSize = 1 << BitsPerPixel;
 
 	if(LeftOfs < 0) {