Commit 0895cfab authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* src/playlist/info.c: Fix a crash in the item info lookup.

parent 163261c6
...@@ -76,7 +76,7 @@ char * playlist_ItemGetInfo( playlist_item_t *p_item, ...@@ -76,7 +76,7 @@ char * playlist_ItemGetInfo( playlist_item_t *p_item,
{ {
info_category_t *p_category = p_item->input.pp_categories[i]; info_category_t *p_category = p_item->input.pp_categories[i];
if( strcmp( p_category->psz_name , psz_cat ) ) continue; if( !psz_cat || strcmp( p_category->psz_name , psz_cat ) ) continue;
for( j = 0 ; j< p_category->i_infos ; j++ ) for( j = 0 ; j< p_category->i_infos ; j++ )
{ {
......
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