[Mlt-devel] [PATCH 2/2] Initialize struct to zero when allocating
Brought to you by:
ddennedy,
lilo_booter
From: Mikko R. <mik...@ik...> - 2012-07-23 11:54:53
|
Just to be on the safe side. --- src/framework/mlt_deque.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/mlt_deque.c b/src/framework/mlt_deque.c index 2c20979..3234fa2 100644 --- a/src/framework/mlt_deque.c +++ b/src/framework/mlt_deque.c @@ -61,7 +61,7 @@ struct mlt_deque_s mlt_deque mlt_deque_init( ) { - mlt_deque self = malloc( sizeof( struct mlt_deque_s ) ); + mlt_deque self = calloc( 1, sizeof( struct mlt_deque_s ) ); if ( self != NULL ) { self->list = NULL; -- 1.7.10.4 |