diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-02-25 14:51:02 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-02-25 14:52:48 +0000 |
commit | 09a165e4f469afe4ad4852211be73006dd905156 (patch) | |
tree | f94237663e57e7166dfa80b5c9a5e7940fcaa770 | |
parent | 27f19999ffd723584501ac891c4529eda51a4745 (diff) | |
download | mupdf-09a165e4f469afe4ad4852211be73006dd905156.tar.xz |
Avoid fz_begin_tile_id ever returning an undefined value.
Silly oversight.
-rw-r--r-- | source/fitz/device.c | 4 |
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) |