[vlc-devel] commit: minimal_macosx: return VLC_ENOMEM on malloc error (Jean-Paul Saman )
git version control
git at videolan.org
Mon Jun 15 14:47:31 CEST 2009
vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Sun May 31 16:39:10 2009 +0200| [d7aabe681b58ef2a6462863ece9aebcc48c5d754] | committer: Derk-Jan Hartman
minimal_macosx: return VLC_ENOMEM on malloc error
(cherry picked from commit 100c91e7315651bd94d27e9fce4b62ab47e26127)
Signed-off-by: Derk-Jan Hartman <hartman at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d7aabe681b58ef2a6462863ece9aebcc48c5d754
---
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