diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-01-22 01:47:37 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-01-22 02:19:16 +0100 |
commit | 0b1724894fb85aa1c07b2619e9269cfafd736956 (patch) | |
tree | f81e45ea31bb57eb176fd7264acfa4615727d776 /src/cgroup-util.c | |
parent | 1b2700a155eb006d2af720f266bd090784943567 (diff) |
gcc: make gcc shut up
Diffstat (limited to 'src/cgroup-util.c')
-rw-r--r-- | src/cgroup-util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cgroup-util.c b/src/cgroup-util.c index 4cf184ae1b..b68b9ad3a3 100644 --- a/src/cgroup-util.c +++ b/src/cgroup-util.c @@ -188,7 +188,7 @@ int cg_kill(const char *controller, const char *path, int sig, bool ignore_self, my_pid = getpid(); do { - pid_t pid; + pid_t pid = 0; done = true; if ((r = cg_enumerate_processes(controller, path, &f)) < 0) { @@ -362,7 +362,7 @@ int cg_migrate(const char *controller, const char *from, const char *to, bool ig my_pid = getpid(); do { - pid_t pid; + pid_t pid = 0; done = true; if ((r = cg_enumerate_tasks(controller, from, &f)) < 0) { @@ -782,9 +782,9 @@ finish: } int cg_is_empty(const char *controller, const char *path, bool ignore_self) { - pid_t pid; + pid_t pid = 0; int r; - FILE *f; + FILE *f = NULL; bool found = false; assert(controller); |