From: cristy Date: Fri, 27 Sep 2013 19:43:25 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3274 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31ba4bb01e3be8d7ccacfab13c1425268b79ba1c;p=imagemagick --- 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));