summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/prwlockinit.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-15 16:29:22 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-15 16:29:22 +0000
commite293d889b56af4e3d43a93f44b0e1cfc00d4c981 (patch)
treebc5f9a3d39969585fdbee70af1b568d2719c0cc2 /cpukit/posix/src/prwlockinit.c
parent2008-08-15 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-e293d889b56af4e3d43a93f44b0e1cfc00d4c981.tar.bz2
2008-08-15 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1297/cpukit * posix/src/prwlockinit.c: Fix NULL attribute pointer handling.
Diffstat (limited to 'cpukit/posix/src/prwlockinit.c')
-rw-r--r--cpukit/posix/src/prwlockinit.c4
1 files changed, 2 insertions, 2 deletions
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: