mirror of
https://github.com/facebook/zstd.git
synced 2025-08-01 09:47:01 +03:00
switched UTIL_refFilename() to an assert()
This commit is contained in:
@ -372,7 +372,7 @@ FileNamesTable* UTIL_allocateFileNamesTable(size_t tableSize)
|
||||
|
||||
void UTIL_refFilename(FileNamesTable* fnt, const char* filename)
|
||||
{
|
||||
if (fnt->tableCapacity <= fnt->tableSize) abort();
|
||||
assert(fnt->tableSize < fnt->tableCapacity);
|
||||
fnt->fileNames[fnt->tableSize] = filename;
|
||||
fnt->tableSize++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user