Commit b03e7b4e authored by Rémi Duraffort's avatar Rémi Duraffort

Use calloc instead of malloc+memset.

parent f65454be
......@@ -85,10 +85,9 @@ static aout_input_t * DecNew( vlc_object_t * p_this, aout_instance_t * p_aout,
goto error;
}
p_input = malloc(sizeof(aout_input_t));
if( p_input == NULL )
p_input = calloc( 1, sizeof(aout_input_t));
if( !p_input )
goto error;
memset( p_input, 0, sizeof(aout_input_t) );
vlc_mutex_init( &p_input->lock );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment