summaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/fcloseall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/fcloseall.c b/stdio-common/fcloseall.c
index d056b902ab..0b1702e112 100644
--- a/stdio-common/fcloseall.c
+++ b/stdio-common/fcloseall.c
@@ -30,7 +30,7 @@ void
__close_all_streams (void)
{
/* We must be prepared for multi-threading on multiple calls. */
- if (! __libc_lock_trylock (lock) && already_called)
+ if (! __libc_lock_trylock (lock) && ! already_called)
{
/* Signal that we already did this. */
already_called = 1;