Commit 6ec8b6f0 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Check malloc return value.

parent 3baa07ad
...@@ -172,6 +172,7 @@ block_fifo_t *__block_FifoNew( vlc_object_t *p_obj ) ...@@ -172,6 +172,7 @@ block_fifo_t *__block_FifoNew( vlc_object_t *p_obj )
block_fifo_t *p_fifo; block_fifo_t *p_fifo;
p_fifo = malloc( sizeof( block_fifo_t ) ); p_fifo = malloc( sizeof( block_fifo_t ) );
if( !p_fifo ) return NULL;
vlc_mutex_init( p_obj, &p_fifo->lock ); vlc_mutex_init( p_obj, &p_fifo->lock );
vlc_cond_init( p_obj, &p_fifo->wait ); vlc_cond_init( p_obj, &p_fifo->wait );
p_fifo->p_first = NULL; p_fifo->p_first = NULL;
......
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