Commit 6e3ef03d authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

modules/misc/playlist/xspf.c: Remove some weird duplicate code.

parent 4ac40b71
...@@ -166,17 +166,6 @@ static void xspf_export_item( playlist_item_t *p_item, FILE *p_file, ...@@ -166,17 +166,6 @@ static void xspf_export_item( playlist_item_t *p_item, FILE *p_file,
psz = p_item->p_input->p_meta->psz_artist ? psz = p_item->p_input->p_meta->psz_artist ?
strdup( p_item->p_input->p_meta->psz_artist ): strdup( p_item->p_input->p_meta->psz_artist ):
strdup( "" ); strdup( "" );
if( psz && !*psz )
{
free( psz );
psz = NULL;
}
if( !psz )
{
psz = p_item->p_input->p_meta->psz_artist ?
strdup( p_item->p_input->p_meta->psz_artist ):
strdup( "" );
}
psz_temp = convert_xml_special_chars( psz ); psz_temp = convert_xml_special_chars( psz );
if( psz ) free( psz ); if( psz ) free( psz );
if( *psz_temp ) if( *psz_temp )
......
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