summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fclose.c
diff options
context:
space:
mode:
authordt <dt@FreeBSD.org>1999-11-21 22:34:57 +0000
committerdt <dt@FreeBSD.org>1999-11-21 22:34:57 +0000
commit0cfd9aa083a96ac6640836d8c3b9e865c7eba83c (patch)
tree08b1794e11ee76f5227e15881db56518221e6af1 /lib/libc/stdio/fclose.c
parent16320b00930330632adb5d64eb0c51bb9f8cc0b3 (diff)
downloadFreeBSD-src-0cfd9aa083a96ac6640836d8c3b9e865c7eba83c.zip
FreeBSD-src-0cfd9aa083a96ac6640836d8c3b9e865c7eba83c.tar.gz
Make __sfp() even more thread-safe.
Diffstat (limited to 'lib/libc/stdio/fclose.c')
-rw-r--r--lib/libc/stdio/fclose.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/fclose.c b/lib/libc/stdio/fclose.c
index 302a7ba..8ddb98b 100644
--- a/lib/libc/stdio/fclose.c
+++ b/lib/libc/stdio/fclose.c
@@ -69,8 +69,8 @@ fclose(fp)
if (HASLB(fp))
FREELB(fp);
FUNLOCKFILE(fp);
- fp->_flags = 0; /* Release this FILE for reuse. */
fp->_file = -1;
fp->_r = fp->_w = 0; /* Mess up if reaccessed. */
+ fp->_flags = 0; /* Release this FILE for reuse. */
return (r);
}
OpenPOWER on IntegriCloud