diff options
author | dt <dt@FreeBSD.org> | 1999-11-21 22:34:57 +0000 |
---|---|---|
committer | dt <dt@FreeBSD.org> | 1999-11-21 22:34:57 +0000 |
commit | 0cfd9aa083a96ac6640836d8c3b9e865c7eba83c (patch) | |
tree | 08b1794e11ee76f5227e15881db56518221e6af1 /lib/libc | |
parent | 16320b00930330632adb5d64eb0c51bb9f8cc0b3 (diff) | |
download | FreeBSD-src-0cfd9aa083a96ac6640836d8c3b9e865c7eba83c.zip FreeBSD-src-0cfd9aa083a96ac6640836d8c3b9e865c7eba83c.tar.gz |
Make __sfp() even more thread-safe.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdio/fclose.c | 2 |
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); } |