summaryrefslogtreecommitdiff
path: root/src/stdio/funlockfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/funlockfile.c')
-rw-r--r--src/stdio/funlockfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/funlockfile.c b/src/stdio/funlockfile.c
index d69f68ee..f8a2a071 100644
--- a/src/stdio/funlockfile.c
+++ b/src/stdio/funlockfile.c
@@ -3,5 +3,5 @@
void funlockfile(FILE *f)
{
- FUNLOCK(f);
+ if (!--f->lockcount) __unlockfile(f);
}