From e6e0b84dfcaae9569177f576b554b2164bb69008 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 16 Jan 2026 11:47:08 -0500 Subject: [PATCH] Remove dead code detected by Coverity. --- pdfio-stream.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pdfio-stream.c b/pdfio-stream.c index c5825d6..f075eec 100644 --- a/pdfio-stream.c +++ b/pdfio-stream.c @@ -1300,9 +1300,7 @@ stream_inflate(pdfio_stream_t *st, // I - Stream } while (bytes > 0 && exactly); - if (exactly && bytes > 0) - return (-1); - else if (st->filter == PDFIO_FILTER_FLATE) + if (st->filter == PDFIO_FILTER_FLATE) return (st->flate.next_out - (Bytef *)buffer); else return (st->lzw->next_out - (uint8_t *)buffer);