[vlc-devel] [vlc-commits] input_EsOutNew: use calloc

Rémi Denis-Courmont remi at remlab.net
Mon Mar 5 11:16:33 CET 2012


On Mon, 05 Mar 2012 05:00:27 -0500, Rafaël Carré <funman at videolan.org>
wrote:
> 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é)
>> wrote:
>>> 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.

I disagree. It hides the initializations behind the allocation. That's
harder to read.

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list