fix regression/pthread_once-deadlock
authorSzabolcs Nagy <nsz@port70.net>
Sat, 23 Oct 2021 16:14:41 +0000 (16:14 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Sat, 23 Oct 2021 16:14:41 +0000 (16:14 +0000)
commitb7ec467969a53756258778fa7d9b045f912d1c93
tree91c278b68cf118de2add5a4bed81b52dcfd0fa54
parent445dc15f0758be6b4666149c1aca8af2a69209df
fix regression/pthread_once-deadlock

the lifetime of a compound literal is block scope and T() expands to an
if block. the argument should be live outside the if block so don't use
a compound literal for it.
src/regression/pthread_once-deadlock.c