}
if (filename && !endswith(filename, ".xz")) {
- *path = filename;
- filename = NULL;
+ if (path) {
+ *path = filename;
+ filename = NULL;
+ }
return 0;
} else {
goto error;
}
} else if (filename) {
-#if HAVE_XZ
+#ifdef HAVE_XZ
_cleanup_close_ int fdf;
fdf = open(filename, O_RDONLY | O_CLOEXEC);
}
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;