fix unsynchronized access to FILE structure in fflush(0)
commit670d6d01f53b4e85be6b333bf8a137e2be6d3fc3
authorRich Felker <dalias@aerifal.cx>
Tue, 29 Aug 2017 23:39:03 +0000 (29 19:39 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 29 Aug 2017 23:39:03 +0000 (29 19:39 -0400)
treef3bf02ed4ecc831b33d857bb8f9b9875f3c0f20f
parent511b7042b3844b42a940f1c31436fb04ce93ac19
fix unsynchronized access to FILE structure in fflush(0)

commit c002668eb0352e619ea7064e4940b397b4a6e68d inadvertently moved
the check for unflushed write buffer outside of the scope of the
existing lock.
src/stdio/fflush.c