[vlc-devel] commit: minimal_macosx: return VLC_ENOMEM on malloc error (Jean-Paul Saman )
git version control
git at videolan.org
Sun Jun 14 20:09:09 CEST 2009
vlc | branch: 1.0-bugfix | Jean-Paul Saman <jpsaman at videolan.org> | Sun May 31 16:39:10 2009 +0200| [100c91e7315651bd94d27e9fce4b62ab47e26127] | committer: Jean-Paul Saman
minimal_macosx: return VLC_ENOMEM on malloc error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=100c91e7315651bd94d27e9fce4b62ab47e26127
---
modules/gui/minimal_macosx/intf.m | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/gui/minimal_macosx/intf.m b/modules/gui/minimal_macosx/intf.m
index 9ad3d08..aa88eab 100644
--- a/modules/gui/minimal_macosx/intf.m
+++ b/modules/gui/minimal_macosx/intf.m
@@ -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 ) );
More information about the vlc-devel
mailing list