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

@@ -151,8 +151,7 @@ ps2_isa_setup(int model, int cpu_type)
ps2_isa_t *ps2;
void *priv;
ps2 = (ps2_isa_t *) malloc(sizeof(ps2_isa_t));
memset(ps2, 0x00, sizeof(ps2_isa_t));
ps2 = (ps2_isa_t *) calloc(1, sizeof(ps2_isa_t));
ps2->model = model;
ps2->cpu_type = cpu_type;