diff --git a/ChangeLog b/ChangeLog index 3bca90ae..c000d659 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2008-12-29 Bob Friesenhahn + * libtiff/tif_ojpeg.c (OJPEGLibjpegJpegSourceMgrFillInputBuffer): + Initialize stack variables to avoid compiler warning. * tools/tiffinfoce.c (main): Use toff_t for offset type when retrieving offset of EXIF IFD. * libtiff/tiffio.h: Undeprecate toff_t and restore its use in the diff --git a/libtiff/tif_ojpeg.c b/libtiff/tif_ojpeg.c index 920d78ba..5ba602fc 100644 --- a/libtiff/tif_ojpeg.c +++ b/libtiff/tif_ojpeg.c @@ -1,4 +1,4 @@ -/* $Id: tif_ojpeg.c,v 1.42 2008-06-17 19:48:22 fwarmerdam Exp $ */ +/* $Id: tif_ojpeg.c,v 1.43 2008-12-30 01:36:26 bfriesen Exp $ */ /* WARNING: The type of JPEG encapsulation defined by the TIFF Version 6.0 specification is now totally obsolete and deprecated for new applications and @@ -2405,8 +2405,8 @@ OJPEGLibjpegJpegSourceMgrFillInputBuffer(jpeg_decompress_struct* cinfo) { TIFF* tif=(TIFF*)cinfo->client_data; OJPEGState* sp=(OJPEGState*)tif->tif_data; - void* mem; - uint32 len; + void* mem=0; + uint32 len=0U; if (OJPEGWriteStream(tif,&mem,&len)==0) { TIFFErrorExt(tif->tif_clientdata,"LibJpeg","Premature end of JPEG data");