mirror of https://git.tukaani.org/xz.git
liblzma: Use memzero() to initialize supported_actions[].
This is cleaner and makes it simpler to add new members to lzma_action enumeration.
This commit is contained in:
parent
a7934c446a
commit
0badb0b1bd
|
@ -156,10 +156,8 @@ lzma_strm_init(lzma_stream *strm)
|
|||
strm->internal->next = LZMA_NEXT_CODER_INIT;
|
||||
}
|
||||
|
||||
strm->internal->supported_actions[LZMA_RUN] = false;
|
||||
strm->internal->supported_actions[LZMA_SYNC_FLUSH] = false;
|
||||
strm->internal->supported_actions[LZMA_FULL_FLUSH] = false;
|
||||
strm->internal->supported_actions[LZMA_FINISH] = false;
|
||||
memzero(strm->internal->supported_actions,
|
||||
sizeof(strm->internal->supported_actions));
|
||||
strm->internal->sequence = ISEQ_RUN;
|
||||
strm->internal->allow_buf_error = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue