From 4d9f8a10357596a0cf1c9ad9419360a3c4c165a3 Mon Sep 17 00:00:00 2001 From: raster Date: Thu, 25 Dec 2008 08:35:51 +0000 Subject: [PATCH] calloc not malloc! bad patches! git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@38318 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/xine/emotion_xine_vo_out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/xine/emotion_xine_vo_out.c b/src/modules/xine/emotion_xine_vo_out.c index 7e3c66b..e3bf7d5 100644 --- a/src/modules/xine/emotion_xine_vo_out.c +++ b/src/modules/xine/emotion_xine_vo_out.c @@ -311,7 +311,7 @@ _emotion_frame_alloc(vo_driver_t *vo_driver) dv = (Emotion_Driver *)vo_driver; // printf("emotion: _emotion_frame_alloc()\n"); - fr = (Emotion_Frame *)malloc(sizeof(Emotion_Frame)); + fr = (Emotion_Frame *)calloc(1, sizeof(Emotion_Frame)); if (!fr) return NULL; fr->vo_frame.base[0] = NULL; -- 2.7.4