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

@@ -1546,8 +1546,7 @@ buslogic_init(const device_t *info)
dev = x54x_init(info);
dev->bus = scsi_get_bus();
dev->ven_data = malloc(sizeof(buslogic_data_t));
memset(dev->ven_data, 0x00, sizeof(buslogic_data_t));
dev->ven_data = calloc(1, sizeof(buslogic_data_t));
bl = (buslogic_data_t *) dev->ven_data;