From e293d889b56af4e3d43a93f44b0e1cfc00d4c981 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 15 Aug 2008 16:29:22 +0000 Subject: [PATCH] 2008-08-15 Joel Sherrill PR 1297/cpukit * posix/src/prwlockinit.c: Fix NULL attribute pointer handling. --- cpukit/ChangeLog | 5 +++++ cpukit/posix/src/prwlockinit.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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: