* thread.cc (MTinterface::CreateCond): Check for null attr pointer.

This commit is contained in:
Christopher Faylor 2001-03-17 04:49:13 +00:00
parent ddca580f9a
commit c0c9de3c66
2 changed files with 5 additions and 1 deletions

View 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

View 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;