diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-12-08 16:43:13 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-12-08 21:46:56 +0100 |
commit | 787c07bc94c3aa163981cb0321e92ce465d33d5f (patch) | |
tree | 03f4c70d285fa3ba9c5a7537ea060dc8af7e5b6a /pdf/pdf_image.c | |
parent | d1e25d11f7191ace03242c456a97b96febaec063 (diff) | |
download | mupdf-787c07bc94c3aa163981cb0321e92ce465d33d5f.tar.xz |
Remove remaining fz_error_note calls in the pdf code.
Diffstat (limited to 'pdf/pdf_image.c')
-rw-r--r-- | pdf/pdf_image.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pdf/pdf_image.c b/pdf/pdf_image.c index f8c4277c..3af9c5f8 100644 --- a/pdf/pdf_image.c +++ b/pdf/pdf_image.c @@ -200,11 +200,16 @@ pdf_load_image_imp(pdf_xref *xref, fz_obj *rdb, fz_obj *dict, fz_stream *cstm, i if (cstm) { unsigned char tbuf[512]; - int tlen = fz_read(stm, tbuf, sizeof tbuf); - if (tlen < 0) - fz_error_handle(tlen, "ignoring error at end of image"); - if (tlen > 0) - fz_warn(ctx, "ignoring garbage at end of image"); + fz_try(ctx) + { + int tlen = fz_read(stm, tbuf, sizeof tbuf); + if (tlen > 0) + fz_warn(ctx, "ignoring garbage at end of image"); + } + fz_catch(ctx) + { + fz_warn(ctx, "ignoring error at end of image"); + } } fz_close(stm); |