diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-03 19:46:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-04 09:07:31 +0200 |
commit | ba09d9c687986305e5b60f923e85e2ec1e78d979 (patch) | |
tree | af8afe0eea4c71d870916aab817217dfa542ad40 | |
parent | 1c80e425124457146ab03279e44ba5155d3e1716 (diff) |
cgroup: fix potential access of uninitialized variable
-rw-r--r-- | src/basic/cgroup-util.c | 2 |
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); |