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