From 6d4b653ee96c0660c5e6e193d6da1947d0898ae9 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 18 Feb 2022 16:00:12 +0000 Subject: Coverity 375485: Initialise variable. Technically, probably not actually required, as no one ever uses total_in, but this doesn't hurt. --- devices/gdevfpng.c | 1 + 1 file changed, 1 insertion(+) (limited to 'devices/gdevfpng.c') 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 -- cgit v1.2.1