]> git.sesse.net Git - vlc/commitdiff
Checks pointers before using them
authorRafaël Carré <funman@videolan.org>
Tue, 11 Sep 2007 18:25:24 +0000 (18:25 +0000)
committerRafaël Carré <funman@videolan.org>
Tue, 11 Sep 2007 18:25:24 +0000 (18:25 +0000)
modules/misc/audioscrobbler.c

index 15213061c9cc7959f523c30109de844712c3ee55..fde4fd1251cbfa44d4db4a6f6cd47b9dd6e24233 100644 (file)
@@ -692,7 +692,8 @@ static int AddToQueue ( intf_thread_t *p_this )
         NO_SUBMISSION
     }
 
-    if( !*p_sys->p_current_song->psz_a || !*p_sys->p_current_song->psz_t )
+    if( !p_sys->p_current_song->psz_a || !*p_sys->p_current_song->psz_a ||
+        !p_sys->p_current_song->psz_t || !*p_sys->p_current_song->psz_t )
     {
         msg_Dbg( p_this, "Missing artist or title -> not submitting" );
         NO_SUBMISSION