[vlc-commits] puzzle: remove tautology
Rémi Denis-Courmont
git at videolan.org
Wed Apr 23 23:02:07 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr 24 00:02:00 2014 +0300| [0d3a81f8512e4b437a7ee08d1bf20261d23da35f] | committer: Rémi Denis-Courmont
puzzle: remove tautology
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d3a81f8512e4b437a7ee08d1bf20261d23da35f
---
modules/video_filter/puzzle_mgt.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/modules/video_filter/puzzle_mgt.c b/modules/video_filter/puzzle_mgt.c
index 8f2fd19..d770d7a 100644
--- a/modules/video_filter/puzzle_mgt.c
+++ b/modules/video_filter/puzzle_mgt.c
@@ -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;
More information about the vlc-commits
mailing list