mirror of
https://code.videolan.org/videolan/vlc
synced 2024-07-21 07:24:15 +02:00
Fix compiler warning about asprintf return value.
This commit is contained in:
parent
ea93da268c
commit
132030acbb
@ -620,7 +620,8 @@ static void ParseComment( demux_t *p_demux, const uint8_t *p_data, int i_data )
|
||||
if( oldval ) \
|
||||
{ \
|
||||
char * newval; \
|
||||
asprintf( &newval, "%s,%s", oldval, &psz[strlen(txt)] ); \
|
||||
if( asprintf( &newval, "%s,%s", oldval, &psz[strlen(txt)] ) == -1 ) \
|
||||
newval = NULL; \
|
||||
vlc_meta_Set( p_sys->p_meta, vlc_meta_ ## var, newval ); \
|
||||
free( newval ); \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user