Guarantee Ref C Buffer 0 initialization

This commit is contained in:
Robert Wright 2021-06-11 13:49:54 +01:00 committed by G. Allais
parent 1875f62248
commit e9b42cc55e

View File

@ -16,7 +16,7 @@ void* newBuffer(int bytes) {
}
buf->size = bytes;
// memset(buf->data, 0, bytes);
memset(buf->data, 0, bytes);
return (void*)buf;
}