From 31ba4bb01e3be8d7ccacfab13c1425268b79ba1c Mon Sep 17 00:00:00 2001 From: cristy Date: Fri, 27 Sep 2013 19:43:25 +0000 Subject: [PATCH] --- coders/tiff.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/coders/tiff.c b/coders/tiff.c index c41485ecf..3a811253d 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -713,11 +713,10 @@ static void TIFFGetEXIFProperties(TIFF *tiff,Image *image, void *shorty; + shorty=(void *) NULL; if (exif_info[i].variable_length != 0) { - void - *shorty; - + shorty=(void *) NULL; if (TIFFGetField(tiff,exif_info[i].tag,&sans,&shorty,&sans) != 0) (void) FormatLocaleString(value,MaxTextExtent,"%d",(int) (*(uint16 *) shorty)); @@ -733,6 +732,7 @@ static void TIFFGetEXIFProperties(TIFF *tiff,Image *image, void *longy; + longy=(void *) NULL; if (TIFFGetField(tiff,exif_info[i].tag,&longy,&sans,&sans) != 0) (void) FormatLocaleString(value,MaxTextExtent,"%d", (*(uint32 *) &longy)); @@ -744,6 +744,7 @@ static void TIFFGetEXIFProperties(TIFF *tiff,Image *image, void *longy; + longy=(void *) NULL; if (TIFFGetField(tiff,exif_info[i].tag,&longy,&sans,&sans) != 0) (void) FormatLocaleString(value,MaxTextExtent,"%.20g",(double) ((MagickOffsetType) (*(uint64 *) &longy))); @@ -758,6 +759,7 @@ static void TIFFGetEXIFProperties(TIFF *tiff,Image *image, void *rational; + rational=(void *) NULL; if (TIFFGetField(tiff,exif_info[i].tag,&rational,&sans,&sans) != 0) (void) FormatLocaleString(value,MaxTextExtent,"%g", *((float *) &rational)); -- 2.50.0