Merge pull request #12756 from cdown/uninit
a couple of correctness fixups
This commit is contained in:
@@ -1378,6 +1378,8 @@ static CGroupMask unit_get_cgroup_mask(Unit *u) {
|
||||
|
||||
c = unit_get_cgroup_context(u);
|
||||
|
||||
assert(c);
|
||||
|
||||
/* Figure out which controllers we need, based on the cgroup context object */
|
||||
|
||||
if (c->cpu_accounting)
|
||||
|
||||
@@ -1942,7 +1942,7 @@ static void output_machines_list(struct machine_info *machine_infos, unsigned n)
|
||||
statelen = STRLEN("STATE"),
|
||||
failedlen = STRLEN("FAILED"),
|
||||
jobslen = STRLEN("JOBS");
|
||||
bool state_missing;
|
||||
bool state_missing = false;
|
||||
|
||||
assert(machine_infos || n == 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user