Commit 1743fe56 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

input: check malloc return

(cherry picked from commit 46437d4aa3300b99dbfe29f6f2d1fa8fcf64155d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a8fe1c1d
......@@ -53,6 +53,8 @@ struct seekpoint_t
static inline seekpoint_t *vlc_seekpoint_New( void )
{
seekpoint_t *point = (seekpoint_t*)malloc( sizeof( seekpoint_t ) );
if( !point )
return NULL;
point->i_byte_offset =
point->i_time_offset = -1;
point->psz_name = NULL;
......@@ -96,6 +98,8 @@ typedef struct input_title_t
static inline input_title_t *vlc_input_title_New(void)
{
input_title_t *t = (input_title_t*)malloc( sizeof( input_title_t ) );
if( !t )
return NULL;
t->psz_name = NULL;
t->b_menu = false;
......
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