aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/song.c7
1 files changed, 2 insertions, 5 deletions
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);