PlaylistFile: don't allow empty playlist name

This commit is contained in:
Max Kellermann
2014-10-31 14:59:27 +01:00
parent 54c591bd9d
commit 7350144ab3
2 changed files with 5 additions and 0 deletions

View File

@@ -64,6 +64,10 @@ spl_global_init(void)
bool
spl_valid_name(const char *name_utf8)
{
if (*name_utf8 == 0)
/* empty name not allowed */
return false;
/*
* Not supporting '/' was done out of laziness, and we should
* really strive to support it in the future.