diff options
Diffstat (limited to 'Utilities/cmliblzma/liblzma/simple/simple_decoder.c')
-rw-r--r-- | Utilities/cmliblzma/liblzma/simple/simple_decoder.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Utilities/cmliblzma/liblzma/simple/simple_decoder.c b/Utilities/cmliblzma/liblzma/simple/simple_decoder.c index 0beccd3..034e158 100644 --- a/Utilities/cmliblzma/liblzma/simple/simple_decoder.c +++ b/Utilities/cmliblzma/liblzma/simple/simple_decoder.c @@ -17,14 +17,15 @@ extern lzma_ret lzma_simple_props_decode(void **options, lzma_allocator *allocator, const uint8_t *props, size_t props_size) { + lzma_options_bcj *opt; + if (props_size == 0) return LZMA_OK; if (props_size != 4) return LZMA_OPTIONS_ERROR; - lzma_options_bcj *opt = lzma_alloc( - sizeof(lzma_options_bcj), allocator); + opt = lzma_alloc(sizeof(lzma_options_bcj), allocator); if (opt == NULL) return LZMA_MEM_ERROR; |