chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fcb410
)
basic/unit-name: remove duplicate check
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 13 Apr 2018 10:38:11 +0000
(12:38 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000
(16:47 +0200)
The check that was right below already covers this case.
src/basic/unit-name.c
patch
|
blob
|
history
diff --git
a/src/basic/unit-name.c
b/src/basic/unit-name.c
index 35e63c17e3e6d7871b88b370c8adc074133e1531..02cb86390c988dff584c8c2a77925199abf3fcf1 100644
(file)
--- a/
src/basic/unit-name.c
+++ b/
src/basic/unit-name.c
@@
-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;