diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-05 19:41:42 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-05 19:41:42 +0900 |
commit | 838440315ccc7e42b546c4320d5eda4193398133 (patch) | |
tree | c46084f510c65239cf014a4dfb7a1eeb08be0ece /src/coredump | |
parent | da2862ef06f22fc8d31dafced6d2d6dc14f2ee0b (diff) | |
download | systemd-838440315ccc7e42b546c4320d5eda4193398133.tar.gz |
coredump: drop unnecessary initialization
Diffstat (limited to 'src/coredump')
-rw-r--r-- | src/coredump/coredump.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index 3e38efe552..20503cfd3b 100644 --- a/src/coredump/coredump.c +++ b/src/coredump/coredump.c @@ -701,10 +701,10 @@ static int get_mount_namespace_leader(pid_t pid, pid_t *ret) { * Returns a negative number on errors. */ static int get_process_container_parent_cmdline(pid_t pid, char** cmdline) { - int r = 0; pid_t container_pid; const char *proc_root_path; struct stat root_stat, proc_root_stat; + int r; /* To compare inodes of / and /proc/[pid]/root */ if (stat("/", &root_stat) < 0) @@ -772,6 +772,7 @@ static int submit_coredump( bool truncated = false; JsonVariant *module_json; int r; + assert(context); assert(iovw); assert(input_fd >= 0); |