From: Michal Sekletar Date: Mon, 9 Sep 2024 13:48:39 +0000 (+0200) Subject: coredump: merge variable definitions X-Git-Tag: v257-rc1~99^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8a567dfc34000c43f1a57fd497ae4c8725ee6d3;p=thirdparty%2Fsystemd.git coredump: merge variable definitions --- diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index cbbd3df2026..32940ff5caf 100644 --- a/src/coredump/coredump.c +++ b/src/coredump/coredump.c @@ -820,8 +820,7 @@ static int submit_coredump( _cleanup_(sd_json_variant_unrefp) sd_json_variant *json_metadata = NULL; _cleanup_close_ int coredump_fd = -EBADF, coredump_node_fd = -EBADF; - _cleanup_free_ char *filename = NULL, *coredump_data = NULL; - _cleanup_free_ char *stacktrace = NULL; + _cleanup_free_ char *filename = NULL, *coredump_data = NULL, *stacktrace = NULL; const char *module_name, *root = NULL; uint64_t coredump_size = UINT64_MAX, coredump_compressed_size = UINT64_MAX; bool truncated = false, written = false;