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 1521306..fde4fd1 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