From: raster Date: Thu, 25 Dec 2008 08:35:51 +0000 (+0000) Subject: calloc not malloc! bad patches! X-Git-Tag: submit/2.0alpha-wayland/20121127.222018~365 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d9f8a10357596a0cf1c9ad9419360a3c4c165a3;p=profile%2Fivi%2Femotion.git calloc not malloc! bad patches! git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@38318 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- 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;