Replacing assert with memory_allocation error code throw

This commit is contained in:
Bimba Shrestha
2019-09-23 15:42:16 -07:00
parent be0bebd24e
commit c04245b257
+1 -1
View File
@@ -2323,7 +2323,7 @@ size_t ZSTD_getSequences(ZSTD_CCtx* zc, ZSTD_Sequence* outSeqs,
void* dst = ZSTD_malloc(dstCapacity, ZSTD_defaultCMem);
SeqCollector seqCollector;
assert(dst != NULL);
RETURN_ERROR_IF(dst == NULL, memory_allocation);
seqCollector.collectSequences = 1;
seqCollector.seqStart = outSeqs;