summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorjxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-29 18:24:18 +0000
committerjxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-29 18:24:18 +0000
commit13dae46d13c6f9f395237cf5d6757ad0d73c27fc (patch)
tree6fbf314a07558ec257f2fa0bf78c3104bd3793a9 /ace
parent228696304c25dcc1b19fd70317dbb5b5d0bcc134 (diff)
downloadATCD-13dae46d13c6f9f395237cf5d6757ad0d73c27fc.tar.gz
Thread is's array checked to see if it is NULL.
Diffstat (limited to 'ace')
-rw-r--r--ace/Thread.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ace/Thread.cpp b/ace/Thread.cpp
index 0248c39efc1..05454c50f90 100644
--- a/ace/Thread.cpp
+++ b/ace/Thread.cpp
@@ -73,7 +73,8 @@ ACE_Thread::spawn_n (ACE_thread_t thread_ids[],
if (result == 0)
{
- thread_ids[i] = t_id;
+ if (thread_ids != 0)
+ thread_ids[i] = t_id;
if (thread_handles != 0)
thread_handles[i] = t_handle;
}