}
if (filename && !endswith(filename, ".xz")) {
- *path = filename;
- filename = NULL;
+ if (path) {
+ *path = filename;
+ filename = NULL;
+ }
return 0;
} else {
}
static int run_gdb(sd_journal *j) {
-
- _cleanup_free_ char *exe = NULL, *coredump = NULL, *path = NULL;
+ _cleanup_free_ char *exe = NULL, *path = NULL;
bool unlink_path = false;
const char *data;
siginfo_t st;