[vlc-devel] commit: Use malloc(1) as cookie rather than malloc(0) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu May 1 20:22:59 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Thu May 1 21:24:07 2008 +0300| [992e35f10497e5509ed588d643a1ef26b3422f6b]
Use malloc(1) as cookie rather than malloc(0)
malloc(0) can legally be NULL (or not unique).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=992e35f10497e5509ed588d643a1ef26b3422f6b
---
modules/stream_out/dummy.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/stream_out/dummy.c b/modules/stream_out/dummy.c
index 94a384c..d3da567 100644
--- a/modules/stream_out/dummy.c
+++ b/modules/stream_out/dummy.c
@@ -80,7 +80,7 @@ static void Close( vlc_object_t * p_this )
static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
{
VLC_UNUSED(p_stream); VLC_UNUSED(p_fmt);
- return malloc( 0 );
+ return malloc( 1 );
}
static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
More information about the vlc-devel
mailing list