diff options
Diffstat (limited to 'src/song.c')
-rw-r--r-- | src/song.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/song.c b/src/song.c index 91714f01c..d8c265879 100644 --- a/src/song.c +++ b/src/song.c @@ -49,7 +49,10 @@ Song * newNullSong() { Song * newSong(char * url, int type, Directory * parentDir) { Song * song = NULL; - if(strchr(url, '\n')) return NULL; + if(strchr(url, '\n')) { + DEBUG("newSong: '%s' is not a valid uri\n"); + return NULL; + } song = newNullSong(); @@ -104,6 +107,8 @@ Song * addSongToList(SongList * list, char * url, char * utf8path, case SONG_TYPE_URL: song = newSong(url, songType, parentDirectory); break; + default: + DEBUG("addSongToList: Trying to add an invalid song type\n"); } if(song==NULL) return NULL; |