correct a C99ism
authorTony Cook <tony@develop=help.com>
Wed, 28 Nov 2007 08:49:56 +0000 (08:49 +0000)
committerTony Cook <tony@develop=help.com>
Wed, 28 Nov 2007 08:49:56 +0000 (08:49 +0000)
tiff.c

diff --git a/tiff.c b/tiff.c
index 7f9f618d9ba908ae9e6608ad5ea16e57fa513dbf..3d5359da58815e7d9a07977c7e4a175f8cf35911 100644 (file)
--- a/tiff.c
+++ b/tiff.c
@@ -1590,12 +1590,13 @@ read_one_rgb_lines(TIFF *tif, int width, int height, int allow_incomplete) {
   uint32 rowsperstrip, row;
   i_color *line_buf;
   int alpha_chan;
+  int rc;
 
   im = make_rgb(tif, width, height, &alpha_chan);
   if (!im)
     return NULL;
 
-  int rc = TIFFGetField(tif, TIFFTAG_ROWSPERSTRIP, &rowsperstrip);
+  rc = TIFFGetField(tif, TIFFTAG_ROWSPERSTRIP, &rowsperstrip);
   mm_log((1, "i_readtiff_wiol: rowsperstrip=%d rc = %d\n", rowsperstrip, rc));
   
   if (rc != 1 || rowsperstrip==-1) {