From 09a165e4f469afe4ad4852211be73006dd905156 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 25 Feb 2015 14:51:02 +0000 Subject: Avoid fz_begin_tile_id ever returning an undefined value. Silly oversight. --- source/fitz/device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source') 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) -- cgit v1.2.3