song: removed duplicate '\n' check

Newline characters are already checked in skip_path() (update.c).
This commit is contained in:
Max Kellermann 2009-01-04 17:26:15 +01:00
parent 77d3643036
commit 8a562c9c71

View File

@ -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);