We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 903bc26 + 9a3b17c commit a07cae3Copy full SHA for a07cae3
lib/compress/zstd_compress.c
@@ -5525,7 +5525,7 @@ ZSTD_CDict* ZSTD_createCDict_advanced2(
5525
cctxParams.useRowMatchFinder, cctxParams.enableDedicatedDictSearch,
5526
customMem);
5527
5528
- if (ZSTD_isError( ZSTD_initCDict_internal(cdict,
+ if (!cdict || ZSTD_isError( ZSTD_initCDict_internal(cdict,
5529
dict, dictSize,
5530
dictLoadMethod, dictContentType,
5531
cctxParams) )) {
0 commit comments