Commit d7aabe68 authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Derk-Jan Hartman

minimal_macosx: return VLC_ENOMEM on malloc error

(cherry picked from commit 100c91e7315651bd94d27e9fce4b62ab47e26127)
Signed-off-by: default avatarDerk-Jan Hartman <hartman@videolan.org>
parent ce4b3f10
......@@ -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