diff options
author | Jia Tan <jiat0218@gmail.com> | 2023-12-20 21:31:34 +0800 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-12-20 21:38:39 +0800 |
commit | b34b6a9912d6165e34ba0db151b7f9941d2e06d5 (patch) | |
tree | 770542e5b97e83d182889724d6bc3725b3703ba6 /src/xz/message.h | |
parent | liblzma: Set all values in lzma_lz_encoder to NULL after allocation. (diff) | |
download | xz-b34b6a9912d6165e34ba0db151b7f9941d2e06d5.tar.xz |
liblzma: Initialize lzma_lz_encoder pointers with NULL.
This fixes the recent change to lzma_lz_encoder that used memzero
instead of the NULL constant. On some compilers the NULL constant
(always 0) may not equal the NULL pointer (this only needs to guarentee
to not point to valid memory address).
Later code compares the pointers to the NULL pointer so we must
initialize them with the NULL pointer instead of 0 to guarentee
code correctness.
Diffstat (limited to 'src/xz/message.h')
0 files changed, 0 insertions, 0 deletions