fixed wrong assert() in regression driver

This commit is contained in:
Yann Collet 2019-11-06 14:56:21 -08:00
parent 485fec5665
commit aea2ff5d8d

View File

@ -32,8 +32,8 @@ int main(int argc, char const **argv) {
#else
files = UTIL_createFNT_fromROTable(fnTable, numFiles);
if (!files) numFiles = 0;
assert(numFiles == files->tableSize);
#endif
if (files) assert(numFiles == files->tableSize);
if (numFiles == 0)
fprintf(stderr, "WARNING: No files passed to %s\n", argv[0]);
for (i = 0; i < numFiles; ++i) {