[MPlayer-cvslog] r19963 - trunk/libmpdemux/demux_nut.c

Rich Felker dalias at aerifal.cx
Sun Sep 24 04:41:02 CEST 2006


On Sat, Sep 23, 2006 at 08:48:18PM +0200, ods15 wrote:
> Author: ods15
> Date: Sat Sep 23 20:48:18 2006
> New Revision: 19963
> 
> Modified:
>    trunk/libmpdemux/demux_nut.c
> 
> Log:
> sync to new libnut
> 
> 
> Modified: trunk/libmpdemux/demux_nut.c
> ==============================================================================
> --- trunk/libmpdemux/demux_nut.c	(original)
> +++ trunk/libmpdemux/demux_nut.c	Sat Sep 23 20:48:18 2006
> @@ -67,6 +67,7 @@
>  			.eof = NULL,
>  			.file_pos = stream_tell(demuxer->stream),
>  		},
> +		.alloc = { .malloc = NULL },
>  		.read_index = index_mode

Not needed. Any elements not initialized are automatically 0/null as
long as there's an initializer at all. However it would be preferable
to make it so that the caller has to explicitly initialize these. That
way linking libnut will not pull in malloc, stdio, etc. if the caller
doesn't want to use them.

Rich




More information about the MPlayer-cvslog mailing list