Commit 005f844f authored by Erwan Tulou's avatar Erwan Tulou

xspf: correct crash if psz_name is NULL

(cherry picked from commit 97c42d97)
parent 8cf70b8e
......@@ -263,10 +263,11 @@ static void xspf_extension_item( playlist_item_t *p_item, FILE *p_file,
if( p_item->i_children >= 0 )
{
int i;
char *psz_temp;
psz_temp = convert_xml_special_chars( p_item->p_input->psz_name );
char *psz_temp = NULL;
if( p_item->p_input->psz_name )
psz_temp = convert_xml_special_chars( p_item->p_input->psz_name );
fprintf( p_file, "\t\t<vlc:node title=\"%s\">\n",
*psz_temp ? psz_temp : "" );
psz_temp ? psz_temp : "" );
free( psz_temp );
for( i = 0; i < p_item->i_children; i++ )
......
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