* libtiff/tif_dirread.c: remove duplicated assignment (reported by

Clang static analyzer)
This commit is contained in:
Even Rouault 2015-11-02 09:52:08 +00:00
parent 1874d4e8c8
commit d91cba049c
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2015-11-02 Even Rouault <even.rouault at spatialys.com>
* libtiff/tif_dirread.c: remove duplicated assignment (reported by
Clang static analyzer)
2015-10-28 Even Rouault <even.rouault at spatialys.com>
* libtiff/tif_dir.c, libtiff/tif_dirinfo.c, libtiff/tif_compress.c,

View File

@ -1,4 +1,4 @@
/* $Id: tif_dirread.c,v 1.192 2015-10-17 10:13:14 erouault Exp $ */
/* $Id: tif_dirread.c,v 1.193 2015-11-02 09:52:08 erouault Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@ -4292,7 +4292,7 @@ EstimateStripByteCounts(TIFF* tif, TIFFDirEntry* dir, uint16 dircount)
/* calculate amount of space used by indirect values */
for (dp = dir, n = dircount; n > 0; n--, dp++)
{
uint32 typewidth = TIFFDataWidth((TIFFDataType) dp->tdir_type);
uint32 typewidth;
uint64 datasize;
typewidth = TIFFDataWidth((TIFFDataType) dp->tdir_type);
if (typewidth == 0) {