diff --git a/ChangeLog b/ChangeLog index 22421eb9..918e9b45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ * libtiff/tif_stream.cxx: warnings cleanup http://bugzilla.maptools.org/show_bug.cgi?id=2091 + * libtiff/tif_dirread.c: warnings cleanup + http://bugzilla.maptools.org/show_bug.cgi?id=2092 2010-12-11 Lee Howard diff --git a/libtiff/tif_dirread.c b/libtiff/tif_dirread.c index 6de586de..986cc0a1 100644 --- a/libtiff/tif_dirread.c +++ b/libtiff/tif_dirread.c @@ -1,4 +1,4 @@ -/* $Id: tif_dirread.c,v 1.161 2010-12-11 22:28:30 faxguy Exp $ */ +/* $Id: tif_dirread.c,v 1.162 2010-12-11 23:22:07 faxguy Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -3410,7 +3410,7 @@ TIFFReadDirectory(TIFF* tif) TIFFDirEntry* dp; uint16 di; const TIFFField* fip; - uint32 fii; + uint32 fii=FAILED_FII; toff_t nextdiroff; tif->tif_diroff=tif->tif_nextdiroff; if (!TIFFCheckDirOffset(tif,tif->tif_nextdiroff)) @@ -3713,7 +3713,7 @@ TIFFReadDirectory(TIFF* tif) uint32 countpersample; uint32 countrequired; uint32 incrementpersample; - uint16* value; + uint16* value=NULL; countpersample=(1L<tif_dir.td_bitspersample); if ((dp->tdir_tag==TIFFTAG_TRANSFERFUNCTION)&&(dp->tdir_count==(uint64)countpersample)) { @@ -5318,6 +5318,7 @@ TIFFFetchSubjectDistance(TIFF* tif, TIFFDirEntry* dir) static const char module[] = "TIFFFetchSubjectDistance"; enum TIFFReadDirEntryErr err; UInt64Aligned_t m; + m.l=0; assert(sizeof(double)==8); assert(sizeof(uint64)==8); assert(sizeof(uint32)==4);