mirror of
https://code.videolan.org/videolan/vlc
synced 2024-07-13 02:40:52 +02:00
Chek return asprintf value.
This commit is contained in:
parent
755df9f11d
commit
a704073137
@ -253,8 +253,9 @@ void ExtVideo::ChangeVFiltersString( char *psz_name, vlc_bool_t b_add )
|
||||
if( !psz_parser )
|
||||
{
|
||||
psz_parser = psz_string;
|
||||
asprintf( &psz_string, ( *psz_string ) ? "%s:%s" : "%s%s",
|
||||
psz_string, psz_name );
|
||||
if( asprintf( &psz_string, ( *psz_string ) ? "%s:%s" : "%s%s",
|
||||
psz_string, psz_name ) == -1 )
|
||||
return;
|
||||
free( psz_parser );
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user