diff options
author | bfriesen <bfriesen> | 2012-07-07 14:43:17 +0000 |
---|---|---|
committer | bfriesen <bfriesen> | 2012-07-07 14:43:17 +0000 |
commit | fd8ba1618be6cd92b151abf766a5c4e63869777a (patch) | |
tree | a68e10f40445d9fe581212bf95b68967694e49c2 | |
parent | 7b10193e028a6eea27446fe012bc4c06577657b1 (diff) | |
download | libtiff-fd8ba1618be6cd92b151abf766a5c4e63869777a.tar.gz |
Eliminate GCC 4.7.0 gripe about potential use of uninitialized data.
-rw-r--r-- | libtiff/tif_dirread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtiff/tif_dirread.c b/libtiff/tif_dirread.c index 2e1e379e..102e249a 100644 --- a/libtiff/tif_dirread.c +++ b/libtiff/tif_dirread.c @@ -1,4 +1,4 @@ -/* $Id: tif_dirread.c,v 1.175 2012-07-06 23:24:46 bfriesen Exp $ */ +/* $Id: tif_dirread.c,v 1.176 2012-07-07 14:43:17 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -4766,7 +4766,7 @@ TIFFFetchNormalTag(TIFF* tif, TIFFDirEntry* dp, int recover) break; case TIFF_SETGET_UINT8: { - uint8 data; + uint8 data=0; assert(fip->field_readcount==1); assert(fip->field_passcount==0); err=TIFFReadDirEntryByte(tif,dp,&data); |