summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_create.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1998-02-13 01:27:34 +0000
committerJulian Elischer <julian@FreeBSD.org>1998-02-13 01:27:34 +0000
commitf5295b34ac101129c1aec1a491a701435e5ec948 (patch)
treedc59a5b9302a9aee5f27001e2cf5ddc1fe2c0e96 /lib/libpthread/thread/thr_create.c
parent5858ada87788ed504d7e60966e7c63e954b72363 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_create.c')
-rw-r--r--lib/libpthread/thread/thr_create.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_create.c b/lib/libpthread/thread/thr_create.c
index e4925a9c420a..398ff21e435d 100644
--- a/lib/libpthread/thread/thr_create.c
+++ b/lib/libpthread/thread/thr_create.c
@@ -199,7 +199,8 @@ _thread_create(pthread_t * thread, const pthread_attr_t * attr,
_thread_link_list = new_thread;
/* Return a pointer to the thread structure: */
- (*thread) = new_thread;
+ if(thread)
+ (*thread) = new_thread;
/* Check if a parent thread was specified: */
if (parent != NULL) {