mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-08 11:26:59 +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 )
|
if( !psz_parser )
|
||||||
{
|
{
|
||||||
psz_parser = psz_string;
|
psz_parser = psz_string;
|
||||||
asprintf( &psz_string, ( *psz_string ) ? "%s:%s" : "%s%s",
|
if( asprintf( &psz_string, ( *psz_string ) ? "%s:%s" : "%s%s",
|
||||||
psz_string, psz_name );
|
psz_string, psz_name ) == -1 )
|
||||||
|
return;
|
||||||
free( psz_parser );
|
free( psz_parser );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user