Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-03-17 07:49:13 +0300
committerChristopher Faylor <me@cgf.cx>2001-03-17 07:49:13 +0300
commitc0c9de3c6656d07a2f314034b072ed35a88747fa (patch)
tree665dec5f57a33154f76c1d87589654cb0bbb6e61 /winsup/cygwin/thread.cc
parentddca580f9abc636905080a119d20461c34410bd1 (diff)
* thread.cc (MTinterface::CreateCond): Check for null attr pointer.
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r--winsup/cygwin/thread.cc2
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;