summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-11-27 03:34:11 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-11-27 03:34:11 +0000
commitccb8c9d1dd1ac4894586713d6fec66fec43961c9 (patch)
treee536c89ac83bdd1a2ae2c7371705e398df227be8
parentd6e610ce8b51b90cdf2495129a79020f9dca6899 (diff)
downloadATCD-ccb8c9d1dd1ac4894586713d6fec66fec43961c9.tar.gz
check for 0 thr_id before dereferencing with STHREADS in ACE_OS::thr_create()
-rw-r--r--ace/OS.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ace/OS.cpp b/ace/OS.cpp
index 4f1816c1af1..6e41a8ff33e 100644
--- a/ace/OS.cpp
+++ b/ace/OS.cpp
@@ -869,7 +869,7 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
// This is the Solaris implementation of pthreads, where
// ACE_thread_t and ACE_hthread_t are the same.
if (result == 0 && thr_handle != 0)
- *thr_handle = *thr_id;
+ *thr_handle = thr_id == 0 ? 0 : *thr_id;
#else
if (thr_handle != 0)
*thr_handle = ACE_OS::NULL_hthread;