diff src/dgif_lib.c @ 175:2d532a89d707 r20-3b14

Import from CVS: tag r20-3b14
author cvs
date Mon, 13 Aug 2007 09:50:14 +0200
parents e292c9648bb9
children 3d6bfa290dbd
line wrap: on
line diff
--- a/src/dgif_lib.c	Mon Aug 13 09:49:11 2007 +0200
+++ b/src/dgif_lib.c	Mon Aug 13 09:50:14 2007 +0200
@@ -922,7 +922,6 @@
     int ImageSize;
     GifRecordType RecordType;
     SavedImage *sp;
-    ExtensionBlock *ep;
     GifByteType *ExtData;
     int ExtCode;
 
@@ -961,7 +960,8 @@
 		    return(GIF_ERROR);
 		else
 		{
-		    ep = &sp->ExtensionBlocks[sp->ExtensionBlockCount++];
+		    ExtensionBlock *ep =
+		      &sp->ExtensionBlocks[sp->ExtensionBlockCount++];
 
 		    ep->ByteCount = ExtData[0];
 		    ep->Bytes = (GifByteType *)xmalloc(ep->ByteCount * sizeof(GifByteType));
@@ -973,7 +973,8 @@
 			return(GIF_ERROR);
 		    else
 		    {
-			ep = &sp->ExtensionBlocks[sp->ExtensionBlockCount++];
+			ExtensionBlock *ep =
+			  &sp->ExtensionBlocks[sp->ExtensionBlockCount++];
 
 			ep->ByteCount = ExtData[0];
 			ep->Bytes = (GifByteType *)xmalloc(ep->ByteCount * sizeof(GifByteType));