From 92fcb8691b5b5986f57aa43da5c640f2b80d2638 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Wed, 2 Sep 2015 15:53:31 +0300 Subject: [PATCH] Fix compilation after previous commit Signed-off-by: Pavel Emelyanov --- cgroup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cgroup.c b/cgroup.c index 82088aa1a..10009be87 100644 --- a/cgroup.c +++ b/cgroup.c @@ -992,7 +992,7 @@ static int prepare_cgroup_dir_properties(char *path, int off, CgroupDirEntry **e CgroupDirEntry *e = ents[i]; size_t off2 = off; - if (strcmp(e->dir_name, "") == 0 && + if (strcmp(e->dir_name, "") == 0) goto skip; /* skip root cgroups */ off2 += sprintf(path + off, "/%s", e->dir_name); @@ -1002,7 +1002,6 @@ static int prepare_cgroup_dir_properties(char *path, int off, CgroupDirEntry **e return -1; } } - skip: if (prepare_cgroup_dir_properties(path, off2, e->children, e->n_children) < 0) return -1;