fixed minor coverity warning
This commit is contained in:
@@ -929,8 +929,8 @@ size_t ZDICT_trainFromBuffer_unsafe(
|
|||||||
size_t dictSize = 0;
|
size_t dictSize = 0;
|
||||||
|
|
||||||
/* checks */
|
/* checks */
|
||||||
if (maxDictSize <= g_provision_entropySize + g_min_fast_dictContent) return ERROR(dstSize_tooSmall);
|
|
||||||
if (!dictList) return ERROR(memory_allocation);
|
if (!dictList) return ERROR(memory_allocation);
|
||||||
|
if (maxDictSize <= g_provision_entropySize + g_min_fast_dictContent) { free(dictList); return ERROR(dstSize_tooSmall); }
|
||||||
|
|
||||||
/* init */
|
/* init */
|
||||||
{ unsigned u; for (u=0, sBuffSize=0; u<nbSamples; u++) sBuffSize += samplesSizes[u]; }
|
{ unsigned u; for (u=0, sBuffSize=0; u<nbSamples; u++) sBuffSize += samplesSizes[u]; }
|
||||||
|
|||||||
Reference in New Issue
Block a user