diff --git a/ChangeLog b/ChangeLog index 8e83d7a2..ed638cca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2009-01-23 Frank Warmerdam + * tools/tiffcrop.c: initialize xres/yres values. + * test/*.sh - default ${srcdir} to local directory. * test/common.sh - start verbose mode after common settings. diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c index f2b40d1b..13f134f2 100644 --- a/tools/tiffcrop.c +++ b/tools/tiffcrop.c @@ -1,4 +1,4 @@ -/* $Id: tiffcrop.c,v 1.10 2009-01-22 20:53:07 fwarmerdam Exp $ */ +/* $Id: tiffcrop.c,v 1.11 2009-01-23 06:04:31 fwarmerdam Exp $ */ /* tiffcrop.c -- a port of tiffcp.c extended to include manipulations of * the image data through additional options listed below @@ -4948,7 +4948,7 @@ static int loadImage(TIFF* in, struct image_data *image, struct dump_opts * dump, unsigned char **read_ptr) { uint32 i; - float xres, yres; + float xres=0.0, yres=0.0; uint16 nstrips, ntiles, planar, bps, spp, res_unit, photometric, orientation; uint32 width, length, rowsperstrip; uint32 stsize, tlsize, buffsize, scanlinesize;