]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix bad merge
authorSen Huang <senhuang96@fb.com>
Mon, 21 Oct 2019 22:55:17 +0000 (18:55 -0400)
committerSen Huang <senhuang96@fb.com>
Mon, 21 Oct 2019 22:55:17 +0000 (18:55 -0400)
lib/compress/zstd_compress.c

index c0ec593f350632ae374698523783cb9829e09559..d03a2cefc3ba1bbba5cd3dd78dd0c63342e2f2da 100644 (file)
@@ -2917,7 +2917,7 @@ static size_t ZSTD_compressBegin_internal(ZSTD_CCtx* cctx,
     }
 
     FORWARD_IF_ERROR( ZSTD_resetCCtx_internal(cctx, *params, pledgedSrcSize,
-                                     ZSTDcrp_continue, zbuff) );
+                                     ZSTDcrp_makeClean, zbuff) );
     {   size_t const dictID = cdict ? 
                 ZSTD_compress_insertDictionary(
                         cctx->blockState.prevCBlock, &cctx->blockState.matchState,
@@ -2925,7 +2925,8 @@ static size_t ZSTD_compressBegin_internal(ZSTD_CCtx* cctx,
                         dictContentType, dtlm, cctx->entropyWorkspace)
               : ZSTD_compress_insertDictionary(
                         cctx->blockState.prevCBlock, &cctx->blockState.matchState,
-                        params, dict, dictSize, dictContentType, dtlm, cctx->entropyWorkspace);
+                        &cctx->workspace, params, dict, dictSize,
+                        dictContentType, dtlm, cctx->entropyWorkspace);
         FORWARD_IF_ERROR(dictID);
         assert(dictID <= UINT_MAX);
         cctx->dictID = (U32)dictID;