Commit 8a562c9c authored by Max Kellermann's avatar Max Kellermann

song: removed duplicate '\n' check

Newline characters are already checked in skip_path() (update.c).
parent 77d36430
......@@ -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);
......
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