malloc to calloc
This commit is contained in:
@@ -651,8 +651,7 @@ t1000_recalcattrs(t1000_t *t1000)
|
||||
static void *
|
||||
t1000_init(UNUSED(const device_t *info))
|
||||
{
|
||||
t1000_t *t1000 = malloc(sizeof(t1000_t));
|
||||
memset(t1000, 0, sizeof(t1000_t));
|
||||
t1000_t *t1000 = calloc(1, sizeof(t1000_t));
|
||||
loadfont("roms/machines/t1000/t1000font.bin", 8);
|
||||
cga_init(&t1000->cga);
|
||||
video_inform(VIDEO_FLAG_TYPE_CGA, &timing_t1000);
|
||||
|
||||
Reference in New Issue
Block a user