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