Commit 100c91e7 authored by Jean-Paul Saman's avatar Jean-Paul Saman

minimal_macosx: return VLC_ENOMEM on malloc error

parent 79f751eb
......@@ -58,7 +58,7 @@ int OpenIntf ( vlc_object_t *p_this )
p_intf->p_sys = malloc( sizeof( intf_sys_t ) );
if( p_intf->p_sys == NULL )
{
return( 1 );
return VLC_ENOMEM;
}
memset( p_intf->p_sys, 0, sizeof( *p_intf->p_sys ) );
......
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