Merge pull request #583 from terrelln/set-dictid

Set dictID to 0 for content only dictionaries
This commit is contained in:
Yann Collet 2017-03-02 13:15:31 -08:00 committed by GitHub
commit fdb0fd34b3

View File

@ -1987,6 +1987,7 @@ static void ZSTD_refDDict(ZSTD_DCtx* dstDCtx, const ZSTD_DDict* ddict)
static size_t ZSTD_loadEntropy_inDDict(ZSTD_DDict* ddict)
{
ddict->dictID = 0;
ddict->entropyPresent = 0;
if (ddict->dictSize < 8) return 0;
{ U32 const magic = MEM_readLE32(ddict->dictContent);