diff options
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/posix/src/mutex.c | 2 |
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 ) { |