summaryrefslogtreecommitdiff
path: root/source/fitz/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/image.c')
-rw-r--r--source/fitz/image.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/fitz/image.c b/source/fitz/image.c
index 02610eef..bb1dc203 100644
--- a/source/fitz/image.c
+++ b/source/fitz/image.c
@@ -140,10 +140,6 @@ fz_decomp_image_from_stream(fz_context *ctx, fz_stream *stm, fz_image *image, in
samples = fz_malloc_array(ctx, h, stride);
len = fz_read(stm, samples, h * stride);
- if (len < 0)
- {
- fz_throw(ctx, FZ_ERROR_GENERIC, "cannot read image data");
- }
/* Make sure we read the EOF marker (for inline images only) */
if (in_line)