evas: fix gif loader accessing uninitialized value.
authorCedric Bail <cedric.bail@samsung.com>
Fri, 5 Jul 2013 02:34:34 +0000 (11:34 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Fri, 5 Jul 2013 02:35:06 +0000 (11:35 +0900)
src/modules/evas/loaders/gif/evas_image_load_gif.c

index 7f9d484..ed7d89f 100644 (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;