1
mirror of https://code.videolan.org/videolan/vlc synced 2024-08-27 04:21:53 +02:00

vlc_input_title_Duplicate: fix possible crash

This commit is contained in:
Jean-Baptiste Kempf 2016-06-22 11:54:15 +02:00
parent a3c12b27fc
commit aefbd1cb84

View File

@ -131,6 +131,8 @@ static inline void vlc_input_title_Delete( input_title_t *t )
static inline input_title_t *vlc_input_title_Duplicate( const input_title_t *t )
{
input_title_t *dup = vlc_input_title_New( );
if( dup == NULL) return NULL;
int i;
if( t->psz_name ) dup->psz_name = strdup( t->psz_name );