Fix benchzstd error message

dev
senhuang42 2021-08-23 19:10:16 -04:00
parent 18a20b3ad7
commit dce48f53df
1 changed files with 4 additions and 0 deletions

View File

@ -805,6 +805,10 @@ BMK_benchOutcome_t BMK_benchFilesAdvanced(
RETURN_ERROR(15, BMK_benchOutcome_t, "Invalid Compression Level"); RETURN_ERROR(15, BMK_benchOutcome_t, "Invalid Compression Level");
} }
if (totalSizeToLoad == UTIL_FILESIZE_UNKNOWN) {
RETURN_ERROR(9, BMK_benchOutcome_t, "Error loading files");
}
fileSizes = (size_t*)calloc(nbFiles, sizeof(size_t)); fileSizes = (size_t*)calloc(nbFiles, sizeof(size_t));
if (!fileSizes) RETURN_ERROR(12, BMK_benchOutcome_t, "not enough memory for fileSizes"); if (!fileSizes) RETURN_ERROR(12, BMK_benchOutcome_t, "not enough memory for fileSizes");