summaryrefslogtreecommitdiffstats
path: root/generic/tkImgGIF.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-07-03 06:00:45 (GMT)
committerhobbs <hobbs>2001-07-03 06:00:45 (GMT)
commit4ffd023388cb831e30a995c1e4ff921df75059f5 (patch)
tree6c5d140a03541c595b175c3e765962c7d4b655b0 /generic/tkImgGIF.c
parent98ce5122c76463bdbded0960323f7a06c2082360 (diff)
downloadtk-4ffd023388cb831e30a995c1e4ff921df75059f5.zip
tk-4ffd023388cb831e30a995c1e4ff921df75059f5.tar.gz
tk-4ffd023388cb831e30a995c1e4ff921df75059f5.tar.bz2
* generic/tkImgGIF.c (Mgetc): corrected screwy use of ternary
operator and possible FMR.
Diffstat (limited to 'generic/tkImgGIF.c')
-rw-r--r--generic/tkImgGIF.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkImgGIF.c b/generic/tkImgGIF.c
index 3ab6753..54c857e 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.16 2000/07/05 23:30:06 ericm Exp $
+ * RCS: @(#) $Id: tkImgGIF.c,v 1.17 2001/07/03 06:00:45 hobbs Exp $
*/
/*
@@ -1083,6 +1083,7 @@ mInit(string, handle)
{
handle->data = string;
handle->state = 0;
+ handle->c = 0;
}
/*
@@ -1160,7 +1161,7 @@ Mgetc(handle)
if (c>GIF_SPECIAL) {
handle->state = GIF_DONE;
- return(handle->state ? handle->c : GIF_DONE);
+ return handle->c;
}
switch (handle->state++) {