diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-08-23 16:32:36 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-08-23 16:32:36 +0200 |
commit | f86f4873e8aef4d54ea45abc70b5f45af204186a (patch) | |
tree | 326236a3fb87dbc7790e99a902dc38f3af7b5995 | |
parent | 3d4ab58c8b8812be0304301df7c53020d20b8fa7 (diff) | |
download | mupdf-f86f4873e8aef4d54ea45abc70b5f45af204186a.tar.xz |
Move assert test of EOF to after testing if a filter is done.
-rw-r--r-- | fitz/stm_filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/stm_filter.c b/fitz/stm_filter.c index f41c4112..55428391 100644 --- a/fitz/stm_filter.c +++ b/fitz/stm_filter.c @@ -8,14 +8,14 @@ fz_process(fz_filter *f, fz_buffer *in, fz_buffer *out) unsigned char *oldrp; unsigned char *oldwp; - assert(!out->eof); - oldrp = in->rp; oldwp = out->wp; if (f->done) return fz_iodone; + assert(!out->eof); + reason = f->process(f, in, out); assert(in->rp <= in->wp); |