[vlc-devel] commit: Avoid using msg_* when running out of memory. ( Rémi Duraffort )

git version control git at videolan.org
Fri May 29 12:35:14 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri May 29 11:24:04 2009 +0200| [ad4996eb5f44aa89a0a6afd0964e02daea6765bf] | committer: Rémi Duraffort 

Avoid using msg_* when running out of memory.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ad4996eb5f44aa89a0a6afd0964e02daea6765bf
---

 modules/gui/maemo/maemo.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/modules/gui/maemo/maemo.c b/modules/gui/maemo/maemo.c
index 4d2234c..08bebcc 100644
--- a/modules/gui/maemo/maemo.c
+++ b/modules/gui/maemo/maemo.c
@@ -84,10 +84,7 @@ static int Open( vlc_object_t *p_this )
     /* Allocate instance and initialize some members */
     p_intf->p_sys = malloc( sizeof( intf_sys_t ) );
     if( p_intf->p_sys == NULL )
-    {
-        msg_Err( p_intf, "out of memory" );
         return VLC_ENOMEM;
-    }
 
     p_intf->pf_run = Run;
 




More information about the vlc-devel mailing list