summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/fitz/load-tiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c
index a6c1cefe..9afcb012 100644
--- a/source/fitz/load-tiff.c
+++ b/source/fitz/load-tiff.c
@@ -911,7 +911,7 @@ tiff_read_tag(fz_context *ctx, struct tiff *tiff, unsigned offset)
break;
case TileByteCounts:
- if (tiff->tileoffsets)
+ if (tiff->tilebytecounts)
fz_throw(ctx, FZ_ERROR_GENERIC, "at most one tile byte counts tag allowed");
tiff->tilebytecounts = fz_malloc_array(ctx, count, sizeof(unsigned));
tiff_read_tag_value(tiff->tilebytecounts, tiff, type, value, count);