From f86f4873e8aef4d54ea45abc70b5f45af204186a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 23 Aug 2009 16:32:36 +0200 Subject: Move assert test of EOF to after testing if a filter is done. --- fitz/stm_filter.c | 4 ++-- 1 file 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); -- cgit v1.2.3