From f3e3af66865a7d4cadb3eeaa79af417401aa740b Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Sun, 21 Sep 2014 16:48:35 -0700 Subject: [PATCH] Fix msvc build error --- libImaging/TiffDecode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libImaging/TiffDecode.c b/libImaging/TiffDecode.c index 1d320e9bd..76bd887a7 100644 --- a/libImaging/TiffDecode.c +++ b/libImaging/TiffDecode.c @@ -221,9 +221,10 @@ int ImagingLibTiffDecode(Imaging im, ImagingCodecState state, UINT8* buffer, int } if (clientstate->ifd){ - unsigned int ifdoffset = clientstate->ifd; + int rv; + unsigned int ifdoffset = clientstate->ifd; TRACE(("reading tiff ifd %d\n", ifdoffset)); - int rv = TIFFSetSubDirectory(tiff, ifdoffset); + rv = TIFFSetSubDirectory(tiff, ifdoffset); if (!rv){ TRACE(("error in TIFFSetSubDirectory")); return -1;