initctl: logically dead code, found by Coverity Scan

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2021-04-10 15:59:13 +02:00
parent a50bc331db
commit d60baa2b80
+1 -2
View File
@@ -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" : "");