summaryrefslogtreecommitdiff
path: root/src/journal/compress.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-10-25 00:14:51 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-10-25 00:14:51 -0400
commit8e0dfb6b8e7a0933c14ded7348e7b778a603aa37 (patch)
treedc277c14a8f76ebe851aad252baa1c6d09dc1259 /src/journal/compress.c
parent0c0f1bc8f76dadb6ccaf89e8df778188503a56cf (diff)
parent0240c603691e006165d8687d6a2c70859755b11f (diff)
Merge pull request #1663 from poettering/journal-compress-fix
journal: fix error handling when compressing journal objects
Diffstat (limited to 'src/journal/compress.c')
-rw-r--r--src/journal/compress.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/journal/compress.c b/src/journal/compress.c
index 8c92e26edd..fb40bed594 100644
--- a/src/journal/compress.c
+++ b/src/journal/compress.c
@@ -57,10 +57,11 @@ int compress_blob_xz(const void *src, uint64_t src_size, void *dst, size_t *dst_
#ifdef HAVE_XZ
static const lzma_options_lzma opt = {
1u << 20u, NULL, 0, LZMA_LC_DEFAULT, LZMA_LP_DEFAULT,
- LZMA_PB_DEFAULT, LZMA_MODE_FAST, 128, LZMA_MF_HC3, 4};
- static const lzma_filter filters[2] = {
- {LZMA_FILTER_LZMA2, (lzma_options_lzma*) &opt},
- {LZMA_VLI_UNKNOWN, NULL}
+ LZMA_PB_DEFAULT, LZMA_MODE_FAST, 128, LZMA_MF_HC3, 4
+ };
+ static const lzma_filter filters[] = {
+ { LZMA_FILTER_LZMA2, (lzma_options_lzma*) &opt },
+ { LZMA_VLI_UNKNOWN, NULL }
};
lzma_ret ret;
size_t out_pos = 0;