diff options
author | David Leonard <d@cvs.openbsd.org> | 1999-01-10 23:09:37 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 1999-01-10 23:09:37 +0000 |
commit | deabc902efaa79efe92a2509c28c68d1dc16a076 (patch) | |
tree | a65772e39621f9c4a34c0a1e9668ae322ce43f46 /lib/libc_r/uthread | |
parent | 69a1040153cabfa0f0c2f33e2191e55e2add688d (diff) |
initialise locks properly
Diffstat (limited to 'lib/libc_r/uthread')
-rw-r--r-- | lib/libc_r/uthread/uthread_fd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_fd.c b/lib/libc_r/uthread/uthread_fd.c index 3db630be5f4..c46615b0270 100644 --- a/lib/libc_r/uthread/uthread_fd.c +++ b/lib/libc_r/uthread/uthread_fd.c @@ -30,7 +30,7 @@ * SUCH DAMAGE. * * $FreeBSD: uthread_fd.c,v 1.9 1998/09/13 15:33:42 dt Exp $ - * $OpenBSD: uthread_fd.c,v 1.3 1998/12/23 22:49:46 d Exp $ + * $OpenBSD: uthread_fd.c,v 1.4 1999/01/10 23:09:36 d Exp $ * */ #include <errno.h> @@ -80,7 +80,7 @@ _thread_fd_table_init(int fd) ret = -1; } else { /* Initialise the file locks: */ - memset(&entry->lock, 0, sizeof(entry->lock)); + _SPINUNLOCK(&entry->lock); entry->r_owner = NULL; entry->w_owner = NULL; entry->r_fname = NULL; |