mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
Fix compilation after previous commit
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
19dbe25918
commit
92fcb8691b
1 changed files with 1 additions and 2 deletions
3
cgroup.c
3
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue