diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkImgGIF.c | 5 |
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++) { |