Commit 132030ac authored by ivoire's avatar ivoire
Browse files

Fix compiler warning about asprintf return value.

parent ea93da26
......@@ -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 ); \
} \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment