chg: use calloc

This commit is contained in:
iceman1001 committed 2019-01-30 21:16:20 +01:00
1 parent e81b0fa355
commit 99b6087b01
7 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -196,7 +196,7 @@ void SetFlushAfterWrite(bool value) {
int i,j;
int * output = (int* ) malloc(sizeof(int) * len);
int * output = (int* ) calloc(sizeof(int) * len, sizeof(uint8_t));
if ( !output ) return;
// clear mem