]> sourceware.org Git - newlib-cygwin.git/commitdiff
* thread.cc (MTinterface::CreateCond): Check for null attr pointer.
authorChristopher Faylor <me@cgf.cx>
Sat, 17 Mar 2001 04:49:13 +0000 (04:49 +0000)
committerChristopher Faylor <me@cgf.cx>
Sat, 17 Mar 2001 04:49:13 +0000 (04:49 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/thread.cc

index a5ec80be6464e8b2ac8d0fcad846f6c602e1b1f5..95c5d4b590c49f8e674a5549120d1301cb23f29e 100644 (file)
@@ -1,3 +1,7 @@
+Saturday Mar 17 3:45 2001 Robert Collins <rbtcollins@hotmail.com>
+
+       * thread.cc (MTinterface::CreateCond): Check for null attr pointer.
+
 Fri Mar 16 21:13:23 2001  Christopher Faylor <cgf@cygnus.com>
 
        * fhandler_termios.cc (fhandler_termios::line_edit): Don't accept input
index e2d751b0fc5034da8fff9dae7f286b30ab4263d5..8ec2d980eb5bc5aeaa7514e55942ce8e6e7acf2f 100644 (file)
@@ -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;
 
This page took 0.033957 seconds and 5 git commands to generate.