Replace malloc for calloc in the ps2_gfx
This commit is contained in:
parent
90ba2df972
commit
40b028ebce
|
@ -66,10 +66,7 @@ static GSGLOBAL *init_GSGlobal(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static GSTEXTURE * prepare_new_texture(void) {
|
static GSTEXTURE * prepare_new_texture(void) {
|
||||||
GSTEXTURE *texture = malloc(sizeof *texture);
|
GSTEXTURE *texture = calloc(1, sizeof(*texture));
|
||||||
texture->Width = 0;
|
|
||||||
texture->Height = 0;
|
|
||||||
texture->Mem = NULL;
|
|
||||||
return texture;
|
return texture;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue