Commit 72f99ebc authored by Christophe Massiot's avatar Christophe Massiot

aggregartp: fix segfault when running with no argument

parent 64deba4c
...@@ -294,10 +294,6 @@ int main( int i_argc, char **pp_argv ) ...@@ -294,10 +294,6 @@ int main( int i_argc, char **pp_argv )
case 'x': case 'x':
i_retx_buffer = strtoll( optarg, NULL, 0 ) * 27000; i_retx_buffer = strtoll( optarg, NULL, 0 ) * 27000;
p_retx_block = malloc( sizeof(block_t) + RETX_HEADER_SIZE );
p_retx_block->p_data = (uint8_t *)p_retx_block + sizeof(block_t);
p_retx_block->i_size = 0;
break; break;
case 'X': case 'X':
...@@ -371,6 +367,10 @@ int main( int i_argc, char **pp_argv ) ...@@ -371,6 +367,10 @@ int main( int i_argc, char **pp_argv )
msg_Dbg( NULL, "%d outputs weight %u%s", i_nb_outputs, i_max_weight, msg_Dbg( NULL, "%d outputs weight %u%s", i_nb_outputs, i_max_weight,
i_retx_fd != -1 ? ", with retx" : "" ); i_retx_fd != -1 ? ", with retx" : "" );
p_retx_block = malloc( sizeof(block_t) + RETX_HEADER_SIZE );
p_retx_block->p_data = (uint8_t *)p_retx_block + sizeof(block_t);
p_retx_block->i_size = 0;
if ( i_priority > 0 ) if ( i_priority > 0 )
{ {
struct sched_param param; struct sched_param param;
......
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