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

@@ -1532,8 +1532,7 @@ machine_pcjr_init(UNUSED(const machine_t *model))
if (bios_only || !ret)
return ret;
pcjr = malloc(sizeof(pcjr_t));
memset(pcjr, 0x00, sizeof(pcjr_t));
pcjr = calloc(1, sizeof(pcjr_t));
pic_init_pcjr();
pit_common_init(0, pit_irq0_timer_pcjr, NULL);