aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-11-08 14:01:50 +0200
committerLasse Collin <lasse.collin@tukaani.org>2022-11-08 14:01:50 +0200
commit8779a9db5d0cec00c9dc9e9965dd2dda04f9d80d (patch)
treec1de91403c202a428fb90ef886980728245e660e
parentliblzma: Fix a comment in auto_decoder.c. (diff)
downloadxz-8779a9db5d0cec00c9dc9e9965dd2dda04f9d80d.tar.xz
liblzma: Use the return_if_error() macro in alone_decoder.c.
-rw-r--r--src/liblzma/common/alone_decoder.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/liblzma/common/alone_decoder.c b/src/liblzma/common/alone_decoder.c
index a3ea20a2..c4d96cda 100644
--- a/src/liblzma/common/alone_decoder.c
+++ b/src/liblzma/common/alone_decoder.c
@@ -139,10 +139,8 @@ alone_decode(void *coder_ptr, const lzma_allocator *allocator,
}
};
- const lzma_ret ret = lzma_next_filter_init(&coder->next,
- allocator, filters);
- if (ret != LZMA_OK)
- return ret;
+ return_if_error(lzma_next_filter_init(&coder->next,
+ allocator, filters));
// Use a hack to set the uncompressed size.
lzma_lz_decoder_uncompressed(coder->next.coder,