]> 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)
committerJia Tan <jiat0218@gmail.com>
Wed, 28 Jun 2023 16:06:16 +0000 (00:06 +0800)
commit78704f36e74205857c898a351c757719a6c8b666
tree080ff23ae93cb0bece46abfedcefd7fdd97dcfd8
parente3356a204c5ae02db3ec4552b6c1be354e9b6142
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.
src/liblzma/common/stream_encoder_mt.c