Commit e0dd7708 authored by Rafaël Carré's avatar Rafaël Carré

Checks pointers before using them

parent f1e3dd73
......@@ -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
......
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