Remove unnecessary dictID store
This commit is contained in:
parent
39a6cc5172
commit
26b046a7c4
@ -3069,7 +3069,6 @@ size_t ZSTD_initCStream_usingCDict(ZSTD_CStream* zcs, const ZSTD_CDict* cdict)
|
||||
ZSTD_parameters const params = ZSTD_getParamsFromCDict(cdict);
|
||||
size_t const initError = ZSTD_initCStream_advanced(zcs, NULL, 0, params, 0);
|
||||
zcs->cdict = cdict;
|
||||
zcs->cctx->dictID = params.fParams.noDictIDFlag ? 0 : cdict->refContext->dictID;
|
||||
if (ZSTD_isError(initError)) return initError;
|
||||
return ZSTD_resetCStream_internal(zcs, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user