Commit 16f6682d authored by Kay Sievers's avatar Kay Sievers

mount_cgroup_controllers: expect 2 items from fscanf()

parent 6bd21277
......@@ -140,7 +140,7 @@ static int mount_cgroup_controllers(void) {
char *controller, *where;
int enabled = false;
if (fscanf(f, "%ms %*i %*i %i", &controller, &enabled) != 1) {
if (fscanf(f, "%ms %*i %*i %i", &controller, &enabled) != 2) {
if (feof(f))
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment