[vlc-devel] commit: Check malloc return value ( Rafaël Carré )
git version control
git at videolan.org
Tue May 6 13:11:01 CEST 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue May 6 13:11:23 2008 +0200| [c35af423b5a87c93ab63e39ad90332e10846bd9f]
Check malloc return value
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c35af423b5a87c93ab63e39ad90332e10846bd9f
---
src/stream_output/stream_output.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/stream_output/stream_output.c b/src/stream_output/stream_output.c
index a8e0f77..ea5bee8 100644
--- a/src/stream_output/stream_output.c
+++ b/src/stream_output/stream_output.c
@@ -214,6 +214,7 @@ sout_packetizer_input_t *sout_InputNew( sout_instance_t *p_sout,
/* *** create a packetizer input *** */
p_input = malloc( sizeof( sout_packetizer_input_t ) );
+ if( !p_input ) return NULL;
p_input->p_sout = p_sout;
p_input->p_fmt = p_fmt;
More information about the vlc-devel
mailing list