diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-15 16:29:47 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-15 16:29:47 +0000 |
commit | 935eb84ab06de8a92eb48dcc112f1c14419f7f19 (patch) | |
tree | c441f0666885900e8f97a63218e6f0a81fc114b4 | |
parent | a4832af52e00a15cc9c66fede80a489d8ce10605 (diff) |
2008-08-15 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1297/cpukit
* posix/src/prwlockinit.c: Fix NULL attribute pointer handling.
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/posix/src/prwlockinit.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 1e409dd28a..9690defca1 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2008-08-15 Joel Sherrill <joel.sherrill@OARcorp.com> + + PR 1297/cpukit + * posix/src/prwlockinit.c: Fix NULL attribute pointer handling. + 2008-08-11 Joel Sherrill <joel.sherrill@OARcorp.com> * rtems/include/rtems.h, sapi/Makefile.am: Add simple helper to get diff --git a/cpukit/posix/src/prwlockinit.c b/cpukit/posix/src/prwlockinit.c index 7149a68e09..8fe9384b37 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: |