summaryrefslogtreecommitdiff
path: root/src/basic/cgroup-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-03 19:46:23 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-04 09:07:31 +0200
commitba09d9c687986305e5b60f923e85e2ec1e78d979 (patch)
treeaf8afe0eea4c71d870916aab817217dfa542ad40 /src/basic/cgroup-util.c
parent1c80e425124457146ab03279e44ba5155d3e1716 (diff)
cgroup: fix potential access of uninitialized variable
Diffstat (limited to 'src/basic/cgroup-util.c')
-rw-r--r--src/basic/cgroup-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c
index 812308e243..fe8750d0f3 100644
--- a/src/basic/cgroup-util.c
+++ b/src/basic/cgroup-util.c
@@ -1910,7 +1910,7 @@ int cg_attach_many_everywhere(CGroupMask supported, const char *path, Set* pids,
int cg_migrate_everywhere(CGroupMask supported, const char *from, const char *to, cg_migrate_callback_t to_callback, void *userdata) {
CGroupController c;
- int r, unified;
+ int r = 0, unified;
if (!path_equal(from, to)) {
r = cg_migrate_recursive(SYSTEMD_CGROUP_CONTROLLER, from, SYSTEMD_CGROUP_CONTROLLER, to, false, true);