summaryrefslogtreecommitdiff
path: root/source/fitz/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/device.c')
-rw-r--r--source/fitz/device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/fitz/device.c b/source/fitz/device.c
index cb622a84..5e3bb61a 100644
--- a/source/fitz/device.c
+++ b/source/fitz/device.c
@@ -446,7 +446,7 @@ fz_begin_tile(fz_context *ctx, fz_device *dev, const fz_rect *area, const fz_rec
int
fz_begin_tile_id(fz_context *ctx, fz_device *dev, const fz_rect *area, const fz_rect *view, float xstep, float ystep, const fz_matrix *ctm, int id)
{
- int ret;
+ int ret = 0;
if (dev->error_depth)
{
@@ -459,6 +459,8 @@ fz_begin_tile_id(fz_context *ctx, fz_device *dev, const fz_rect *area, const fz_
if (ystep < 0)
ystep = -ystep;
+ fz_var(ret);
+
fz_try(ctx)
{
if (dev->begin_tile)