[vlc-devel] [vlc-commits] input_EsOutNew: use calloc
funman at videolan.org
Mon Mar 5 11:00:27 CET 2012
Le 05/03/2012 04:57, Rémi Denis-Courmont a écrit :
> On Mon, 5 Mar 2012 10:36:40 +0100 (CET), git at videolan.org (Rafaël Carré)
>> vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Mar 5
>> 02:16:50 2012 -0500| [6eeeda913c22e1fd32107bf12bf2c7df6c2938fc] |
>> committer: Rafaël Carré
>> input_EsOutNew: use calloc
> Why? This uselessly initializes stuff that was initialized to non-zero.
Agreed but this makes it easier to read IMO.
> Also this is not strictly correct for NULL pointers.
It's true but since we do that in a lot other places I don't think we
http://c-faq.com/null/machexamp.html only shows old machines.
More information about the vlc-devel