summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_init.c
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>1997-05-13 23:54:22 +0000
committerAlexander Langer <alex@FreeBSD.org>1997-05-13 23:54:22 +0000
commit9c49eac6721bbbb72ffa6f62fb1d2f1f6b0b8d7f (patch)
tree47245f695f25822d2f7b68b5ed070339657e03be /lib/libpthread/thread/thr_init.c
parent8d9b7b9e3f0a6a14a9f62283bbcf802e35b568a8 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
-rw-r--r--lib/libpthread/thread/thr_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c
index 2adc34f152c1..5833cdfcacec 100644
--- a/lib/libpthread/thread/thr_init.c
+++ b/lib/libpthread/thread/thr_init.c
@@ -183,7 +183,7 @@ _thread_init(void)
PANIC("Cannot get dtablesize");
}
/* Allocate memory for the file descriptor table: */
- if ((_thread_fd_table = (struct fd_table_entry **) malloc(sizeof(struct fd_table_entry) * _thread_dtablesize)) == NULL) {
+ if ((_thread_fd_table = (struct fd_table_entry **) malloc(sizeof(struct fd_table_entry *) * _thread_dtablesize)) == NULL) {
/*
* Cannot allocate memory for the file descriptor
* table, so abort this process.