diff options
author | Max Kellermann <max@duempel.org> | 2015-11-06 09:37:07 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-11-06 09:37:07 +0100 |
commit | c880099deb41c09ea7844daa27a42dac4142c0cd (patch) | |
tree | 571482d1e6e7efc95ab7d443f246232188d3c23f /src/PlaylistFile.cxx | |
parent | 42f5ecd4a116c96d30bf407859dadaa9a053ea39 (diff) | |
download | mpd-c880099deb41c09ea7844daa27a42dac4142c0cd.tar.gz mpd-c880099deb41c09ea7844daa27a42dac4142c0cd.tar.xz mpd-c880099deb41c09ea7844daa27a42dac4142c0cd.zip |
util/StringCompare: add StringIsEmpty()
Diffstat (limited to 'src/PlaylistFile.cxx')
-rw-r--r-- | src/PlaylistFile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx index 911a4fc17..d8c15841b 100644 --- a/src/PlaylistFile.cxx +++ b/src/PlaylistFile.cxx @@ -70,7 +70,7 @@ spl_global_init(void) bool spl_valid_name(const char *name_utf8) { - if (*name_utf8 == 0) + if (StringIsEmpty(name_utf8)) /* empty name not allowed */ return false; |