summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-12 16:29:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-12 16:29:14 +0000
commit684c3c49c3ca62817604ddb5c823b757b894f817 (patch)
treed764bf6a361c1d3e1fd7bf800aa2cf7beff8b769 /cpukit/posix
parentInit: added pthread_cond_init with an attr non-NULL, initialized the attr again (diff)
downloadrtems-684c3c49c3ca62817604ddb5c823b757b894f817.tar.bz2
pthread_mutexattr_getprotocol: added check for attribute structure being
initialized
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/src/mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/mutex.c b/cpukit/posix/src/mutex.c
index e6feda5864..d2c0c6cd2c 100644
--- a/cpukit/posix/src/mutex.c
+++ b/cpukit/posix/src/mutex.c
@@ -506,7 +506,7 @@ int pthread_mutexattr_setprotocol(
int protocol
)
{
- if ( !attr )
+ if ( !attr || !attr->is_initialized )
return EINVAL;
switch ( protocol ) {