summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-02-20 15:28:36 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-02-20 15:28:36 (GMT)
commit3bd078b4e41cc6c97c8b54236f061fb9631b2e1c (patch)
tree6388876e60a0c2b90cb72da62e0336a3fc8b25f4
parente6b3ee423b2024f0b7dcefe5bbef2c3c489f17b2 (diff)
downloadtk-3bd078b4e41cc6c97c8b54236f061fb9631b2e1c.zip
tk-3bd078b4e41cc6c97c8b54236f061fb9631b2e1c.tar.gz
tk-3bd078b4e41cc6c97c8b54236f061fb9631b2e1c.tar.bz2
Removed pointless static variable ZeroDataBlock from tkImgGIF.c [Bug #664788]
It served no useful purpose whatsoever...
-rw-r--r--ChangeLog3
-rw-r--r--generic/tkImgGIF.c6
2 files changed, 4 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index f3f805c..ece0897 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2003-02-20 Donal K. Fellows <fellowsd@cs.man.ac.uk>
+ * generic/tkImgGIF.c (GetDataBlock): Removed pointless static
+ variable ZeroDataBlock [Bug #664788]
+
* unix/tkUnixFont.c (CanUseFallback): Added argument, passed
through from callers to FindSubFontForChar(), so that pointers
into the old subfont table to be updated when that table is
diff --git a/generic/tkImgGIF.c b/generic/tkImgGIF.c
index b34365e..1f4a79b 100644
--- a/generic/tkImgGIF.c
+++ b/generic/tkImgGIF.c
@@ -29,7 +29,7 @@
* | provided "as is" without express or implied warranty. |
* +-------------------------------------------------------------------+
*
- * RCS: @(#) $Id: tkImgGIF.c,v 1.23 2003/02/18 14:03:46 dkf Exp $
+ * RCS: @(#) $Id: tkImgGIF.c,v 1.24 2003/02/20 15:28:40 dkf Exp $
*/
/*
@@ -743,8 +743,6 @@ DoExtension(chan, label, transparent)
return count;
}
-static int ZeroDataBlock = 0;
-
static int
GetDataBlock(chan, buf)
Tcl_Channel chan;
@@ -756,8 +754,6 @@ GetDataBlock(chan, buf)
return -1;
}
- ZeroDataBlock = count == 0;
-
if ((count != 0) && (! ReadOK(chan, buf, count))) {
return -1;
}