util/StringCompare: add StringIsEmpty()

This commit is contained in:
Max Kellermann
2015-11-06 09:37:07 +01:00
parent 42f5ecd4a1
commit c880099deb
13 changed files with 37 additions and 16 deletions

View File

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