diff options
author | Christopher Faylor <me@cgf.cx> | 2001-03-17 07:49:13 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-03-17 07:49:13 +0300 |
commit | c0c9de3c6656d07a2f314034b072ed35a88747fa (patch) | |
tree | 665dec5f57a33154f76c1d87589654cb0bbb6e61 /winsup/cygwin/thread.cc | |
parent | ddca580f9abc636905080a119d20461c34410bd1 (diff) |
* thread.cc (MTinterface::CreateCond): Check for null attr pointer.
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r-- | winsup/cygwin/thread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index e2d751b0f..8ec2d980e 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -483,7 +483,7 @@ MTinterface::CreateCond (pthread_cond_t * cond, const pthread_condattr_t * attr) if (!item) system_printf ("cond creation failed"); item->used = true; - item->shared = attr->shared; + item->shared = attr ? attr->shared: PTHREAD_PROCESS_PRIVATE; item->mutexitem=NULL; item->waiting=0; |