]> git.sesse.net Git - vlc/commitdiff
dirac: fix invalid test (found with coccinelle static analyzer).
authorRémi Duraffort <ivoire@videolan.org>
Thu, 11 Feb 2010 11:42:08 +0000 (12:42 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 11 Feb 2010 14:17:35 +0000 (15:17 +0100)
modules/packetizer/dirac.c

index e23d9aab333c780732df8abc983faeb59793c569..8676e6acbcd1548fef5e641392dc0e4eb2cc2321 100644 (file)
@@ -279,7 +279,7 @@ static int block_ChainToArray( block_t *p_block, block_t ***ppp_array)
     block_ChainProperties( p_block, &i_num_blocks, NULL, NULL );
 
     *ppp_array = calloc( i_num_blocks, sizeof( block_t* ) );
-    if( !ppp_array ) return 0;
+    if( !*ppp_array ) return 0;
 
     for( int i = 0; i < i_num_blocks; i++ )
     {