diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-12-08 15:32:03 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-12-08 21:46:55 +0100 |
commit | 34c971b594bad41fa6c2ad4a9798e5a18de129b5 (patch) | |
tree | 0c3956c35f827d1649e0520abf18974a4e0ec8e2 /fitz/filt_predict.c | |
parent | e64a57b1e9c2ba6c6f54eff73c414be9e78dafbe (diff) | |
download | mupdf-34c971b594bad41fa6c2ad4a9798e5a18de129b5.tar.xz |
Throw exceptions for read errors.
Diffstat (limited to 'fitz/filt_predict.c')
-rw-r--r-- | fitz/filt_predict.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fitz/filt_predict.c b/fitz/filt_predict.c index ed0d6d98..d640373e 100644 --- a/fitz/filt_predict.c +++ b/fitz/filt_predict.c @@ -153,8 +153,6 @@ read_predict(fz_stream *stm, unsigned char *buf, int len) while (p < ep) { n = fz_read(state->chain, state->in, state->stride + ispng); - if (n < 0) - return fz_error_note(n, "read error in prediction filter"); if (n == 0) return p - buf; |