summaryrefslogtreecommitdiff
path: root/src/mount-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mount-setup.c')
-rw-r--r--src/mount-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mount-setup.c b/src/mount-setup.c
index 7eb806e7fd..7e468e2728 100644
--- a/src/mount-setup.c
+++ b/src/mount-setup.c
@@ -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;