From 4a990366f601559a49fe18dddf7c41e004e1c03f Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Thu, 11 Feb 2010 12:42:08 +0100 Subject: [PATCH] dirac: fix invalid test (found with coccinelle static analyzer). --- modules/packetizer/dirac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/packetizer/dirac.c b/modules/packetizer/dirac.c index e23d9aab33..8676e6acbc 100644 --- a/modules/packetizer/dirac.c +++ b/modules/packetizer/dirac.c @@ -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++ ) { -- 2.39.5