Commit 97c42d97 authored by Erwan Tulou's avatar Erwan Tulou

xspf: correct crash if psz_name is NULL

parent 0b61ec33
......@@ -259,10 +259,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