mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
Drop logically dead code, found by Coverity Scan
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
e75c1792aa
commit
b65773d508
1 file changed
+1
-1
+1
-1
@@ -798,7 +798,7 @@ char *runlevel_arr(int levels)
|
||||
for (int i = 0; i < 10; i++) {
|
||||
if (ISSET(levels, i)) {
|
||||
if (i == 0)
|
||||
p += snprintf(&lvl[p], sizeof(lvl) - p, "%s\"S\"", s ? ", " : "");
|
||||
p += snprintf(&lvl[p], sizeof(lvl) - p, "\"S\"");
|
||||
else
|
||||
p += snprintf(&lvl[p], sizeof(lvl) - p, "%s%c", s ? ", " : "", '0' + i);
|
||||
s++;
|
||||
|
||||
Reference in new issue
Block a user