mirror of
https://github.com/facebook/zstd.git
synced 2025-12-30 00:19:20 -05:00
fixed initialization warning
This commit is contained in:
parent
e7a41a5955
commit
8f8e2b0b4a
@ -1811,7 +1811,7 @@ unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict* ddict)
|
||||
* When identifying the exact failure cause, it's possible to used ZSTD_getFrameParams(), which will provide a more precise error code. */
|
||||
unsigned ZSTD_getDictID_fromFrame(const void* src, size_t srcSize)
|
||||
{
|
||||
ZSTD_frameParams zfp;
|
||||
ZSTD_frameParams zfp = { 0 , 0 , 0 , 0 };
|
||||
size_t const hError = ZSTD_getFrameParams(&zfp, src, srcSize);
|
||||
if (ZSTD_isError(hError)) return 0;
|
||||
return zfp.dictID;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user