malloc to calloc
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user