Merge pull request #4500 from facebook/legacy01_init

fix minor initialization warnings
This commit is contained in:
Yann Collet 2025-09-24 22:46:05 -07:00 committed by GitHub
commit f42dee27b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1823,11 +1823,12 @@ static size_t ZSTD_decompressSequences(
BYTE* const ostart = (BYTE* const)dst;
BYTE* op = ostart;
BYTE* const oend = ostart + maxDstSize;
size_t errorCode, dumpsLength;
size_t errorCode = 0;
size_t dumpsLength = 0;
const BYTE* litPtr = litStart;
const BYTE* const litEnd = litStart + litSize;
int nbSeq;
const BYTE* dumps;
int nbSeq = 0;
const BYTE* dumps = NULL;
U32* DTableLL = dctx->LLTable;
U32* DTableML = dctx->MLTable;
U32* DTableOffb = dctx->OffTable;
@ -1915,7 +1916,7 @@ size_t ZSTDv01_decompressDCtx(void* ctx, void* dst, size_t maxDstSize, const voi
size_t remainingSize = srcSize;
U32 magicNumber;
size_t errorCode=0;
blockProperties_t blockProperties;
blockProperties_t blockProperties = { 0 };
/* Frame Header */
if (srcSize < ZSTD_frameHeaderSize+ZSTD_blockHeaderSize) return ERROR(srcSize_wrong);