Commit 84630ece authored by Rafaël Carré's avatar Rafaël Carré

Check malloc return value

parent daf7b6fe
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* stream_output.c : stream output module * stream_output.c : stream output module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2004 the VideoLAN team * Copyright (C) 2002-2004 the VideoLAN team
* $Id$ * $Id: e0072f910c8d913573adc7836a2b893d66ae9c27 $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* Laurent Aimar <fenrir@via.ecp.fr> * Laurent Aimar <fenrir@via.ecp.fr>
...@@ -209,6 +209,7 @@ sout_packetizer_input_t *sout_InputNew( sout_instance_t *p_sout, ...@@ -209,6 +209,7 @@ sout_packetizer_input_t *sout_InputNew( sout_instance_t *p_sout,
/* *** create a packetizer input *** */ /* *** create a packetizer input *** */
p_input = malloc( sizeof( sout_packetizer_input_t ) ); p_input = malloc( sizeof( sout_packetizer_input_t ) );
if( !p_input ) return NULL;
p_input->p_sout = p_sout; p_input->p_sout = p_sout;
p_input->p_fmt = p_fmt; p_input->p_fmt = p_fmt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment