]> git.sesse.net Git - vlc/blobdiff - modules/video_output/caca.c
Check malloc return value when needed and don't print an error when such error happend.
[vlc] / modules / video_output / caca.c
index 67a6743a63e64a63053437ee839eb45aa602608c..967dea8e68c0d9af94a6dee4247927186247715a 100644 (file)
@@ -163,10 +163,7 @@ static int Create( vlc_object_t *p_this )
     /* Allocate structure */
     p_vout->p_sys = malloc( sizeof( vout_sys_t ) );
     if( p_vout->p_sys == NULL )
-    {
-        msg_Err( p_vout, "out of memory" );
         return VLC_ENOMEM;
-    }
 
     p_vout->p_sys->p_cv = cucul_create_canvas(0, 0);
     if( !p_vout->p_sys->p_cv )