initialize that memory block before reading from it

SVN revision: 8406
This commit is contained in:
tsauerbeck 2004-01-14 18:11:03 +00:00 committed by tsauerbeck
parent cfa94eaaaa
commit ae0df2ecb5
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ evas_common_image_surface_free(RGBA_Surface *is)
void
evas_common_image_surface_alloc(RGBA_Surface *is)
{
is->data = malloc(is->w * is->h * sizeof(DATA32));
is->data = calloc(1, is->w * is->h * sizeof(DATA32));
}
void