]> git.sesse.net Git - vlc/commitdiff
fix segfault
authorRafaël Carré <funman@videolan.org>
Fri, 25 Jan 2008 14:12:36 +0000 (14:12 +0000)
committerRafaël Carré <funman@videolan.org>
Fri, 25 Jan 2008 14:12:36 +0000 (14:12 +0000)
src/input/meta.c

index 3655b6f8e9df858192c4a454b639fc46f1a3d0dc..82e4b3a0559c5532e91690a5fa70110ac8ad2a65 100644 (file)
@@ -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*() */