Fixed an uninitialized variable bug which was making TigerT's gifs blow

Mon Sep 28 18:08:14 BST 1998  Adam D. Moss <adam@gimp.org>

	* plug-ins/gif.c: Fixed an uninitialized variable bug
	which was making TigerT's gifs blow up.  Sigh!
This commit is contained in:
BST 1998 Adam D. Moss 1998-09-28 17:14:29 +00:00 committed by Adam D. Moss
parent 2d5e991cb1
commit 6f9fed4789
3 changed files with 21 additions and 6 deletions

View file

@ -1,3 +1,8 @@
Mon Sep 28 18:08:14 BST 1998 Adam D. Moss <adam@gimp.org>
* plug-ins/gif.c: Fixed an uninitialized variable bug
which was making TigerT's gifs blow up. Sigh!
Sun Sep 27 13:53:03 BST 1998 Adam D. Moss <adam@gimp.org>
* app/paint_funcs.c: Fixed a bug in color_only_pixels(),

View file

@ -7,7 +7,7 @@
* Based around original GIF code by David Koblas.
*
*
* Version 2.0.4 - 98/09/15
* Version 2.0.5 - 98/09/28
* Adam D. Moss - <adam@gimp.org> <adam@foxbox.org>
*/
/*
@ -24,6 +24,9 @@
* REVISION HISTORY
*
*
* 98/09/28
* 2.00.05 - Fixed TigerT's Infinite GIF Bug. Icky one.
*
* 98/09/15
* 2.00.04 - The facility to specify the background colour of
* a transparent/animated GIF for non-transparent
@ -1654,7 +1657,7 @@ save_image (char *filename,
int Blue[MAXCOLORS];
guchar *cmap;
guint rows, cols;
int BitsPerPixel, liberalBPP, useBPP;
int BitsPerPixel, liberalBPP=0, useBPP=0;
int colors;
char *temp_buf;
int i;
@ -1756,7 +1759,9 @@ save_image (char *filename,
}
else
{
BitsPerPixel = colorstobpp (256);
liberalBPP = BitsPerPixel =
colorstobpp (256);
if (drawable_type==INDEXEDA_IMAGE)
{
g_print ("GIF: Too many colours?\n");

View file

@ -7,7 +7,7 @@
* Based around original GIF code by David Koblas.
*
*
* Version 2.0.4 - 98/09/15
* Version 2.0.5 - 98/09/28
* Adam D. Moss - <adam@gimp.org> <adam@foxbox.org>
*/
/*
@ -24,6 +24,9 @@
* REVISION HISTORY
*
*
* 98/09/28
* 2.00.05 - Fixed TigerT's Infinite GIF Bug. Icky one.
*
* 98/09/15
* 2.00.04 - The facility to specify the background colour of
* a transparent/animated GIF for non-transparent
@ -1654,7 +1657,7 @@ save_image (char *filename,
int Blue[MAXCOLORS];
guchar *cmap;
guint rows, cols;
int BitsPerPixel, liberalBPP, useBPP;
int BitsPerPixel, liberalBPP=0, useBPP=0;
int colors;
char *temp_buf;
int i;
@ -1756,7 +1759,9 @@ save_image (char *filename,
}
else
{
BitsPerPixel = colorstobpp (256);
liberalBPP = BitsPerPixel =
colorstobpp (256);
if (drawable_type==INDEXEDA_IMAGE)
{
g_print ("GIF: Too many colours?\n");