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