]> git.ipfire.org Git - thirdparty/xz.git/commit
liblzma: Prevent uninitialzed warning in mt stream encoder.
authorJia Tan <jiat0218@gmail.com>
Wed, 28 Jun 2023 12:31:11 +0000 (20:31 +0800)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 7 May 2024 12:23:51 +0000 (15:23 +0300)
commit5f9bf810441d37a1ab3626a67c9369ea27243915
tree14c873d2375d73e077c91d59f5ba38b993bb63df
parent6174ac8e60a5a9d202cc302917f007e07b38cf8b
liblzma: Prevent uninitialzed warning in mt stream encoder.

This change only impacts the compiler warning since it was impossible
for the wait_abs struct in stream_encode_mt() to be used before it was
initialized since mythread_condtime_set() will always be called before
mythread_cond_timedwait().

Since the mythread.h code is different between the POSIX and
Windows versions, this warning was only present on Windows builds.

Thanks to Arthur S for reporting the warning and providing an initial
patch.

(cherry picked from commit 1155471651ad456c5f90aee6435931fae65682bf)
src/liblzma/common/stream_encoder_mt.c