From 06dac7192dfc421d042a273ad46f7cf635fec765 Mon Sep 17 00:00:00 2001 From: Bob Friesenhahn Date: Sat, 7 Jul 2012 14:43:17 +0000 Subject: [PATCH] Eliminate GCC 4.7.0 gripe about potential use of uninitialized data. --- libtiff/tif_dirread.c | 4 ++-- 1 file 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);