(Switch) Replace malloc() with calloc() in switch_gfx.c

This commit is contained in:
twinaphex 2018-01-23 06:48:10 +01:00
parent 93523782e5
commit bb1fdad0d9

View File

@ -63,7 +63,7 @@ static void *switch_init(const video_info_t *video,
const input_driver_t **input, void **input_data)
{
unsigned x, y;
switch_video_t *sw = malloc(sizeof(*sw));
switch_video_t *sw = (switch_video_t*)calloc(1, sizeof(*sw));
if (!sw)
return NULL;