Replace malloc for calloc in the ps2_gfx

This commit is contained in:
Francisco Javier Trujillo Mata 2018-11-11 17:14:39 +01:00
parent 90ba2df972
commit 40b028ebce

View File

@ -66,10 +66,7 @@ static GSGLOBAL *init_GSGlobal(void) {
}
static GSTEXTURE * prepare_new_texture(void) {
GSTEXTURE *texture = malloc(sizeof *texture);
texture->Width = 0;
texture->Height = 0;
texture->Mem = NULL;
GSTEXTURE *texture = calloc(1, sizeof(*texture));
return texture;
}