Skip to content
Snippets Groups Projects
Commit 41af59e1 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

fix segfault

parent a93540a4
No related branches found
No related tags found
No related merge requests found
......@@ -429,7 +429,7 @@ int input_DownloadAndCacheArt( playlist_t *p_playlist, input_item_t *p_item )
}
psz_type = strrchr( psz_arturl, '.' );
if( strlen( psz_type ) > 5 )
if( psz_type && strlen( psz_type ) > 5 )
psz_type = NULL; /* remove extension if it's > to 4 characters */
/* Warning: psz_title, psz_artist, psz_album may change in ArtCache*() */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment