summaryrefslogtreecommitdiff
path: root/src/coredump
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2019-06-25 15:54:44 +0200
committerFranck Bui <fbui@suse.com>2019-06-27 19:14:23 +0200
commit11e6d9714ebcae00cb42a0d0910881b2b6570742 (patch)
tree7e43ebff3da4ba947bf2ffec9ebf65797be0295f /src/coredump
parent554c76b6625f390f7d33bc1edf037540653db773 (diff)
downloadsystemd-11e6d9714ebcae00cb42a0d0910881b2b6570742.tar.gz
systemd-11e6d9714ebcae00cb42a0d0910881b2b6570742.tar.bz2
systemd-11e6d9714ebcae00cb42a0d0910881b2b6570742.zip
journal-import: extract helpers for handling arrays of iovec and make them available for others
Diffstat (limited to 'src/coredump')
-rw-r--r--src/coredump/coredump.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index 1a5a2dc81d..e991fe4af0 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -1237,9 +1237,7 @@ static int process_backtrace(int argc, char *argv[]) {
_cleanup_free_ struct iovec *iovec = NULL;
size_t n_iovec, n_allocated, n_to_free = 0, i;
int r;
- _cleanup_(journal_importer_cleanup) JournalImporter importer = {
- .fd = STDIN_FILENO,
- };
+ _cleanup_(journal_importer_cleanup) JournalImporter importer = JOURNAL_IMPORTER_INIT(STDIN_FILENO);
log_debug("Processing backtrace on stdin...");