proper fullbench's LZ4_calloc()
authorYann Collet <cyan@fb.com>
Mon, 9 Nov 2020 18:58:31 +0000 (10:58 -0800)
committerYann Collet <cyan@fb.com>
Mon, 9 Nov 2020 18:58:31 +0000 (10:58 -0800)
tests/fullbench.c

index 181128e6649276c615880b23db8d446ca4b7fbfc..cb9b684f2ccba49bdffa034b2d5f33fc7f4b69fe 100644 (file)
@@ -159,7 +159,7 @@ static size_t BMK_findMaxMem(U64 requiredMem)
 *  Memory management, to test LZ4_USER_MEMORY_FUNCTIONS
 *********************************************************/
 void* LZ4_malloc(size_t s) { return malloc(s); }
-void* LZ4_calloc(size_t n, size_t s) { (void)n; return calloc(1,s); }
+void* LZ4_calloc(size_t n, size_t s) { return calloc(n,s); }
 void  LZ4_free(void* p) { free(p); }