Commit 39236e52 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Check return value of malloc()

parent f90b0e65
......@@ -315,6 +315,9 @@ static int Open( vlc_object_t *p_this )
p_access->info.i_seekpoint = 0;
p_access->p_sys = p_sys = malloc( sizeof( access_sys_t ) );
if( !p_sys )
return VLC_ENOMEM;
memset( p_sys, 0, sizeof( access_sys_t ) );
/* Create all variables */
......
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