evas: fix gif loader accessing uninitialized value.

This commit is contained in:
Cedric Bail 2013-07-05 11:34:34 +09:00
parent 307e2f823d
commit 2efcd3bb19
1 changed files with 1 additions and 1 deletions

View File

@ -911,7 +911,7 @@ evas_image_load_specific_frame(Eina_File *f,
goto on_error;
}
gif_frame = malloc(sizeof (Gif_Frame));
gif_frame = calloc(1, sizeof (Gif_Frame));
if (!gif_frame)
{
*error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;