[vlc-devel] commit: Introduce realloc_or_free() to src/*, and add assert() to mark unhandled ENOMEM error conditions. Allocation shrinking or otherwise handled allocations don' t need realloc_or_free. (JP Dinger )

Rémi Denis-Courmont remi at remlab.net
Sun Dec 6 08:32:02 CET 2009


Le samedi 5 décembre 2009 23:35:16 git version control, vous avez écrit :
> vlc | branch: master | JP Dinger <jpd at videolan.org> | Sat Dec  5 09:11:42
>  2009 +0100| [4e4720311a10bf0917cc826369438c6565d56a4f] | committer: JP
>  Dinger
> 
> Introduce realloc_or_free() to src/*, and add assert() to mark unhandled
>  ENOMEM error conditions. Allocation shrinking or otherwise handled
>  allocations don't need realloc_or_free.

I think this is wrong. You are mixing up assertions with errors.

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list