From 8a562c9c7132aef079bcc97f5d7a91d5ba7ab88c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Jan 2009 17:26:15 +0100 Subject: song: removed duplicate '\n' check Newline characters are already checked in skip_path() (update.c). --- src/song.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/song.c b/src/song.c index 323262512..19abb963f 100644 --- a/src/song.c +++ b/src/song.c @@ -71,11 +71,8 @@ song_file_load(const char *path, struct directory *parent) bool ret; assert((parent == NULL) == (*path == '/')); - - if (strchr(path, '\n')) { - g_debug("newSong: '%s' is not a valid uri\n", path); - return NULL; - } + assert(!uri_has_scheme(path)); + assert(strchr(path, '\n') == NULL); song = song_file_new(path, parent); -- cgit v1.2.3