summaryrefslogtreecommitdiffstats
path: root/generic/tkImgGIF.c
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2001-07-03 06:00:44 (GMT)
committerhobbs <hobbs@noemail.net>2001-07-03 06:00:44 (GMT)
commit3a83d90975fc03e07eab7bb72710585c52eeae9a (patch)
tree6c5d140a03541c595b175c3e765962c7d4b655b0 /generic/tkImgGIF.c
parent40170bca81908d49c3e242f803e58ba2ab50b1b7 (diff)
downloadtk-3a83d90975fc03e07eab7bb72710585c52eeae9a.zip
tk-3a83d90975fc03e07eab7bb72710585c52eeae9a.tar.gz
tk-3a83d90975fc03e07eab7bb72710585c52eeae9a.tar.bz2
* generic/tkImgGIF.c (Mgetc): corrected screwy use of ternary
operator and possible FMR. FossilOrigin-Name: cd61f88f766b6d619fc26a1fed396ff4ac95dae2
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++) {