diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index b35067a3a2..b191fcf1c1 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2008-08-15 Joel Sherrill + + PR 1297/cpukit + * posix/src/prwlockinit.c: Fix NULL attribute pointer handling. + 2008-08-14 Sebastian Huber * rtems/include/rtems/rtems/ratemon.h, diff --git a/cpukit/posix/src/prwlockinit.c b/cpukit/posix/src/prwlockinit.c index e769a9b031..c4174c8931 100644 --- a/cpukit/posix/src/prwlockinit.c +++ b/cpukit/posix/src/prwlockinit.c @@ -65,10 +65,10 @@ int pthread_rwlock_init( /* * Now start error checking the attributes that we are going to use */ - if ( !attr->is_initialized ) + if ( !the_attr->is_initialized ) return EINVAL; - switch ( attr->process_shared ) { + switch ( the_attr->process_shared ) { case PTHREAD_PROCESS_PRIVATE: /* only supported values */ break; case PTHREAD_PROCESS_SHARED: