[vlc-devel] [RFC 17/38] demux/oggseek: replaced usage of xmalloc

Filip Roséen filip at videolabs.io
Mon Jun 27 13:43:28 CEST 2016


---
 modules/demux/oggseek.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/oggseek.c b/modules/demux/oggseek.c
index 3376aea..30770d1 100644
--- a/modules/demux/oggseek.c
+++ b/modules/demux/oggseek.c
@@ -86,8 +86,8 @@ void oggseek_index_entries_free ( demux_index_entry_t *idx )
 
 static demux_index_entry_t *index_entry_new( void )
 {
-    demux_index_entry_t *idx = xmalloc( sizeof( demux_index_entry_t ) );
-    if ( !idx ) return NULL;
+    demux_index_entry_t *idx = malloc( sizeof( demux_index_entry_t ) );
+    if ( unlikely( !idx ) ) return NULL;
     idx->p_next = idx->p_prev = NULL;
     idx->i_pagepos_end = -1;
     return idx;
-- 
2.9.0



More information about the vlc-devel mailing list