diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index e7948d03279..cfd73fdb08b 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -2921,7 +2921,8 @@ static size_t ZSTD_postProcessExternalMatchFinderResult( #if defined(DEBUGLEVEL) && (DEBUGLEVEL>=2) { - size_t coveredBytes, idx; + size_t coveredBytes = 0; + size_t idx = 0; for (idx = 0; idx < nbExternalSeqs; idx++) { /* We already know that nbExternalSeqs <= outSeqsCapacity */