commit | f622c0adf36683acba6ae02406ad0694515336f0 | [log] [tgz] |
---|---|---|
author | Yann Collet <cyan@fb.com> | Tue Nov 26 14:48:23 2019 -0800 |
committer | Yann Collet <cyan@fb.com> | Tue Nov 26 14:48:23 2019 -0800 |
tree | 7485b694b49abf8b7718c8683728eec12f3d3693 | |
parent | 46bdbb9c0680fe9bf648bebdc493315c3634644e [diff] [blame] |
switched UTIL_refFilename() to an assert()
diff --git a/programs/util.c b/programs/util.c index bb511bd..3c541c5 100644 --- a/programs/util.c +++ b/programs/util.c
@@ -372,7 +372,7 @@ 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++; }