summaryrefslogtreecommitdiff
path: root/devices/gdevfpng.c
diff options
context:
space:
mode:
Diffstat (limited to 'devices/gdevfpng.c')
-rw-r--r--devices/gdevfpng.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/devices/gdevfpng.c b/devices/gdevfpng.c
index 445290702..f533d777f 100644
--- a/devices/gdevfpng.c
+++ b/devices/gdevfpng.c
@@ -302,6 +302,7 @@ static int fpng_process(void *arg, gx_device *dev, gx_device *bdev, const gs_int
stream.next_out = &buffer->data[0];
stream.avail_out = buffer->size;
stream.total_out = 0;
+ stream.total_in = 0;
/* Nasty zlib hackery here. Zlib always outputs a 'start of stream'
* marker at the beginning. We just want a block, so for all blocks