mirror of https://git.tukaani.org/xz.git
xz: Use lzma_lzma_preset() to initialize the options structure.
This commit is contained in:
parent
8fd3ac046d
commit
c46afd6edc
|
@ -346,18 +346,8 @@ options_lzma(const char *str)
|
||||||
};
|
};
|
||||||
|
|
||||||
lzma_options_lzma *options = xmalloc(sizeof(lzma_options_lzma));
|
lzma_options_lzma *options = xmalloc(sizeof(lzma_options_lzma));
|
||||||
*options = (lzma_options_lzma){
|
if (lzma_lzma_preset(options, LZMA_PRESET_DEFAULT))
|
||||||
.dict_size = LZMA_DICT_SIZE_DEFAULT,
|
message_bug();
|
||||||
.preset_dict = NULL,
|
|
||||||
.preset_dict_size = 0,
|
|
||||||
.lc = LZMA_LC_DEFAULT,
|
|
||||||
.lp = LZMA_LP_DEFAULT,
|
|
||||||
.pb = LZMA_PB_DEFAULT,
|
|
||||||
.mode = LZMA_MODE_NORMAL,
|
|
||||||
.nice_len = 64,
|
|
||||||
.mf = LZMA_MF_BT4,
|
|
||||||
.depth = 0,
|
|
||||||
};
|
|
||||||
|
|
||||||
parse_options(str, opts, &set_lzma, options);
|
parse_options(str, opts, &set_lzma, options);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue