summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.c b/api.c
index 280afcd..0edb55b 100644
--- a/api.c
+++ b/api.c
@@ -766,7 +766,7 @@ static int cgroup_fill_cgc(struct dirent *ctrl_dir, struct cgroup *cgroup,
error = stat(path, &stat_buffer);
- if (!error) {
+ if (error) {
error = ECGFAIL;
goto fill_error;
}