diff options
author | Jamaika1 <lukaszcz18@wp.pl> | 2023-08-08 14:07:59 +0200 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-10-26 06:22:24 +0800 |
commit | c0c0cd4a483a672b66a13761583bc4f84d86d501 (patch) | |
tree | ef0108fb0a1bac7f32ba859095975a8c7c884adc | |
parent | Tests: Style fixes to test_lzip_decoder.c. (diff) | |
download | xz-c0c0cd4a483a672b66a13761583bc4f84d86d501.tar.xz |
mythread.h: Fix typo error in Vista threads mythread_once().
The "once_" variable was accidentally referred to as just "once". This
prevented building with Vista threads when
HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR was not defined.
-rw-r--r-- | src/common/mythread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/mythread.h b/src/common/mythread.h index 1cce50e9..4495e017 100644 --- a/src/common/mythread.h +++ b/src/common/mythread.h @@ -378,7 +378,7 @@ typedef struct { abort(); \ if (pending_) { \ func(); \ - if (!InitOnceComplete(&once, 0, NULL)) \ + if (!InitOnceComplete(&once_, 0, NULL)) \ abort(); \ } \ } while (0) |