chiark / gitweb /
basic/unit-name: remove duplicate check
[elogind.git] / src / basic / unit-name.c
index 35e63c17e3e6d7871b88b370c8adc074133e1531..02cb86390c988dff584c8c2a77925199abf3fcf1 100644 (file)
@@ -251,8 +251,6 @@ int unit_name_build(const char *prefix, const char *instance, const char *suffix
         assert(suffix);
         assert(ret);
 
-        if (isempty(suffix))
-                return -EINVAL;
         if (suffix[0] != '.')
                 return -EINVAL;