[vlc-devel] Re: [PATCH] Allow configuration of JACK connections

Jon Griffiths jon_p_griffiths at yahoo.com
Thu Apr 12 13:19:45 CEST 2007


> I don't understand the malloc=>calloc switch, but it seems fine to
> me. I'll try to compile it tonight.

The calloc() ensures that the structure members are null, so the
error handling code doesn't try to free any memory that hasn't been
allocated. An alternative would be to memset() the struct after
malloc(). I used calloc() since it's less code and its also used
elswhere in VLC.


Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.

This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html

More information about the vlc-devel mailing list