malloc to calloc

This commit is contained in:
Jasmine Iwanek
2025-01-07 00:42:06 -05:00
parent f599e72114
commit 4e6f29a7d5
183 changed files with 245 additions and 493 deletions

View File

@@ -73,8 +73,7 @@ zenith_scratchpad_init(UNUSED(const device_t *info))
{
zenith_t *dev;
dev = (zenith_t *) malloc(sizeof(zenith_t));
memset(dev, 0x00, sizeof(zenith_t));
dev = (zenith_t *) calloc(1, sizeof(zenith_t));
dev->scratchpad_ram = malloc(0x4000);