Commit 0d3a81f8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

puzzle: remove tautology

parent 25f6146e
......@@ -465,11 +465,9 @@ int puzzle_shuffle( filter_t *p_filter )
int puzzle_generate_rand_pce_list( filter_t *p_filter, int32_t **pi_pce_lst )
{
filter_sys_t *p_sys = p_filter->p_sys;
int32_t i_pieces_nbr = p_sys->s_allocated.i_pieces_nbr;
if (pi_pce_lst != NULL )
free( *pi_pce_lst );
free( *pi_pce_lst );
*pi_pce_lst = calloc( i_pieces_nbr, sizeof(**pi_pce_lst) );
if( !*pi_pce_lst )
return VLC_ENOMEM;
......
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