mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
fixed minor coverity warning
This commit is contained in:
parent
e20d5cf117
commit
e9ed5cdc94
1 changed files with 1 additions and 1 deletions
|
|
@ -929,8 +929,8 @@ size_t ZDICT_trainFromBuffer_unsafe(
|
|||
size_t dictSize = 0;
|
||||
|
||||
/* checks */
|
||||
if (maxDictSize <= g_provision_entropySize + g_min_fast_dictContent) return ERROR(dstSize_tooSmall);
|
||||
if (!dictList) return ERROR(memory_allocation);
|
||||
if (maxDictSize <= g_provision_entropySize + g_min_fast_dictContent) { free(dictList); return ERROR(dstSize_tooSmall); }
|
||||
|
||||
/* init */
|
||||
{ unsigned u; for (u=0, sBuffSize=0; u<nbSamples; u++) sBuffSize += samplesSizes[u]; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue