diff options
-rw-r--r-- | xine_fbfe_frontend.c | 5 | ||||
-rw-r--r-- | xine_frontend.c | 5 | ||||
-rw-r--r-- | xine_sxfe_frontend.c | 5 |
3 files changed, 6 insertions, 9 deletions
diff --git a/xine_fbfe_frontend.c b/xine_fbfe_frontend.c index 13d3f542..698ee7d0 100644 --- a/xine_fbfe_frontend.c +++ b/xine_fbfe_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_fbfe_frontend.c,v 1.19 2008-03-28 22:17:17 phintuka Exp $ + * $Id: xine_fbfe_frontend.c,v 1.20 2008-05-21 20:06:45 phintuka Exp $ * */ @@ -282,8 +282,7 @@ static void fbfe_display_close(frontend_t *this_gen) static frontend_t *fbfe_get_frontend(void) { - fe_t *this = malloc(sizeof(fe_t)); - memset(this, 0, sizeof(fe_t)); + fe_t *this = calloc(1, sizeof(fe_t)); this->fd_tty = -1; diff --git a/xine_frontend.c b/xine_frontend.c index 91c2f048..61f19e77 100644 --- a/xine_frontend.c +++ b/xine_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend.c,v 1.55 2008-05-07 15:19:08 phintuka Exp $ + * $Id: xine_frontend.c,v 1.56 2008-05-21 20:06:45 phintuka Exp $ * */ @@ -657,8 +657,7 @@ static int fe_xine_init(frontend_t *this_gen, const char *audio_driver, this->pes_buffers = pes_buffers; - posts = this->postplugins = malloc(sizeof(post_plugins_t)); - memset(posts, 0, sizeof(post_plugins_t)); + posts = this->postplugins = calloc(1, sizeof(post_plugins_t)); posts->xine = this->xine; posts->audio_port = this->audio_port; posts->video_port = this->video_port; diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c index e576a903..d6b17cfb 100644 --- a/xine_sxfe_frontend.c +++ b/xine_sxfe_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_sxfe_frontend.c,v 1.41 2008-04-10 15:01:31 phintuka Exp $ + * $Id: xine_sxfe_frontend.c,v 1.42 2008-05-21 20:06:45 phintuka Exp $ * */ @@ -1456,8 +1456,7 @@ static int sxfe_xine_play(frontend_t *this_gen) static frontend_t *sxfe_get_frontend(void) { - sxfe_t *this = malloc(sizeof(sxfe_t)); - memset(this, 0, sizeof(sxfe_t)); + sxfe_t *this = calloc(1, sizeof(sxfe_t)); this->window_id = -1; |