diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-18 21:44:36 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-18 21:44:36 -0400 |
commit | 01c3322e017989d25f7b4b51268245d5315ae678 (patch) | |
tree | bb9c575f43604e284a6266a55245d3a8a77823a4 /src/journal | |
parent | 901fd8164797f3eeb9921c85915dc409d49ab5d8 (diff) |
compress: fix return value
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/compress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/compress.c b/src/journal/compress.c index 316c1a66e3..ee18bc8fbc 100644 --- a/src/journal/compress.c +++ b/src/journal/compress.c @@ -132,7 +132,7 @@ int decompress_blob_xz(const void *src, uint64_t src_size, space = MIN(src_size * 2, dst_max ?: (uint64_t) -1); if (!greedy_realloc(dst, dst_alloc_size, space, 1)) - return false; + return -ENOMEM; s.next_in = src; s.avail_in = src_size; @@ -158,7 +158,7 @@ int decompress_blob_xz(const void *src, uint64_t src_size, used = space - s.avail_out; space = MIN(2 * space, dst_max ?: (uint64_t) -1); if (!greedy_realloc(dst, dst_alloc_size, space, 1)) - return false; + return -ENOMEM; s.avail_out = space - used; s.next_out = *dst + used; |