[vlc-devel] Rémi Duraffort : Check the returned values of malloc.

Rémi Denis-Courmont rdenis at simphalempin.com
Sun Mar 2 17:25:17 CET 2008


Le Sunday 02 March 2008 15:25:46 git version control, vous avez écrit :
> +        msg_Err( p_this, "out of memory" );

I know there is a common religion here to print an error message in case of 
memory allocation failure. In practice, this is pretty useless: msg_Err() 
needs to allocate memory too, so if there is not enough memory, the error 
message will be discarded anyway.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list