mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-12 13:44:56 +02:00
vlc_input_title_Duplicate: fix possible crash
This commit is contained in:
parent
a3c12b27fc
commit
aefbd1cb84
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user