mirror of
https://github.com/troglobit/finit.git
synced 2026-10-31 13:00:32 +00:00
initctl: logically dead code, found by Coverity Scan
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
a50bc331db
commit
d60baa2b80
1 file changed
+1
-2
+1
-2
@@ -665,8 +665,7 @@ static char *status(svc_t *svc, int full)
|
|||||||
color = NULL;
|
color = NULL;
|
||||||
|
|
||||||
if (!full)
|
if (!full)
|
||||||
snprintf(buf, sizeof(buf), "%s%-8.8s%s",
|
snprintf(buf, sizeof(buf), "%-8.8s", s);
|
||||||
color ? color : "", s, color ? "\e[0m" : "");
|
|
||||||
else
|
else
|
||||||
snprintf(buf, sizeof(buf), "%s%s%s%s",
|
snprintf(buf, sizeof(buf), "%s%s%s%s",
|
||||||
color ? color : "", s, ok, color ? "\e[0m" : "");
|
color ? color : "", s, ok, color ? "\e[0m" : "");
|
||||||
|
|||||||
Reference in new issue
Block a user