]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 3 Jun 2014 11:12:35 +0000 (11:12 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 3 Jun 2014 11:12:35 +0000 (11:12 +0000)
coders/tiff.c

index 7680176cb767912be91af50b9d3d598d18e221d0..41a79326900f508d8adbda94f447321152bd86d6 100644 (file)
@@ -709,10 +709,15 @@ static void TIFFGetEXIFProperties(TIFF *tiff,Image *image,
       {
         if (exif_info[i].variable_length != 0)
           {
+            int
+              tiff_status;
+
             uint16
               *shorty;
 
-            if (TIFFGetField(tiff,exif_info[i].tag,&sans,&shorty,&sans,&sans) == 1)
+            tiff_status=TIFFGetField(tiff,exif_info[i].tag,&sans,&shorty,&sans,
+              &sans);
+            if (tiff_status == 1)
               (void) FormatLocaleString(value,MaxTextExtent,"%d",shorty[0]);
           }
         else
@@ -1769,8 +1774,7 @@ RestoreMSCWarning
           q+=GetPixelChannels(image)*(image->columns-1);
           for (x=0; x < (ssize_t) image->columns; x++)
           {
-            SetPixelRed(image,ScaleCharToQuantum((unsigned char) TIFFGetR(*p)),
-              q);
+            SetPixelRed(image,ScaleCharToQuantum((unsigned char) TIFFGetR(*p)),q);
             SetPixelGreen(image,ScaleCharToQuantum((unsigned char)
               TIFFGetG(*p)),q);
             SetPixelBlue(image,ScaleCharToQuantum((unsigned char) TIFFGetB(*p)),