summaryrefslogtreecommitdiff
path: root/lib/libc_r
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1999-01-10 23:09:37 +0000
committerDavid Leonard <d@cvs.openbsd.org>1999-01-10 23:09:37 +0000
commitdeabc902efaa79efe92a2509c28c68d1dc16a076 (patch)
treea65772e39621f9c4a34c0a1e9668ae322ce43f46 /lib/libc_r
parent69a1040153cabfa0f0c2f33e2191e55e2add688d (diff)
initialise locks properly
Diffstat (limited to 'lib/libc_r')
-rw-r--r--lib/libc_r/uthread/uthread_fd.c4
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;