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;
|
bool ret;
|
||||||
|
|
||||||
assert((parent == NULL) == (*path == '/'));
|
assert((parent == NULL) == (*path == '/'));
|
||||||
|
assert(!uri_has_scheme(path));
|
||||||
if (strchr(path, '\n')) {
|
assert(strchr(path, '\n') == NULL);
|
||||||
g_debug("newSong: '%s' is not a valid uri\n", path);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
song = song_file_new(path, parent);
|
song = song_file_new(path, parent);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user