Commit a7bac1e6 authored by Laurent Aimar's avatar Laurent Aimar

* block: fixed block_Realloc.

parent 5531e69d
...@@ -151,7 +151,7 @@ static block_t *BlockRealloc( block_t *p_block, int i_prebody, int i_body ) ...@@ -151,7 +151,7 @@ static block_t *BlockRealloc( block_t *p_block, int i_prebody, int i_body )
i_body = 0; i_body = 0;
} }
if( !i_body || !i_prebody ) if( i_body > 0 || i_prebody > 0 )
{ {
block_t *p_rea = block_New( p_block->p_manager, i_buffer_size ); block_t *p_rea = block_New( p_block->p_manager, i_buffer_size );
......
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