fixed static analyzer false positive regarding @sequence initialization

make a mock initialization to please the tool
This commit is contained in:
Yann Collet
2023-06-16 16:24:48 -07:00
parent c60dcedcc9
commit c123e69ad0
+1 -1
View File
@@ -1429,7 +1429,7 @@ ZSTD_decompressSequences_bodySplitLitBuffer( ZSTD_DCtx* dctx,
BIT_DStream_completed < BIT_DStream_overflow);
/* decompress without overrunning litPtr begins */
{ seq_t sequence;
{ seq_t sequence = {0,0,0}; /* some static analyzer believe that @sequence is not initialized (it necessarily is, since for(;;) loop as at least one interation) */
/* Align the decompression loop to 32 + 16 bytes.
*
* zstd compiled with gcc-9 on an Intel i9-9900k shows 10% decompression