]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 27 Mar 2010 14:51:16 +0000 (14:51 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 27 Mar 2010 14:51:16 +0000 (14:51 +0000)
coders/tiff.c

index 71441494fbe727fc4b671bd8859482f461967ab9..d6b6ce39ca6c7d1dc285de1ea0106961eb41efc0 100644 (file)
@@ -2354,9 +2354,7 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info,
 
   const char
     *mode,
-    *option;
-
-  const char
+    *option,
     *value;
 
   CompressionType
@@ -2745,7 +2743,7 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info,
     rows_per_strip=1;
     if (TIFFScanlineSize(tiff) != 0)
       rows_per_strip=(unsigned long) MagickMax((size_t)
-        TIFFDefaultStripSize(tiff,-1),1);
+        TIFFDefaultStripSize(tiff,0),1);
     option=GetImageOption(image_info,"tiff:rows-per-strip");
     if (option != (const char *) NULL)
       rows_per_strip=(unsigned long) strtol(option,(char **) NULL,10);