song: removed duplicate '\n' check
Newline characters are already checked in skip_path() (update.c).
This commit is contained in:
parent
77d3643036
commit
8a562c9c71
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user