1
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:
Rémi Duraffort 2008-08-01 23:07:16 +02:00
parent ea93da268c
commit 132030acbb

View File

@ -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 ); \
} \