diff options
Diffstat (limited to 'cpukit/posix/src/mutexattrgettype.c')
-rw-r--r-- | cpukit/posix/src/mutexattrgettype.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/posix/src/mutexattrgettype.c b/cpukit/posix/src/mutexattrgettype.c index 2d392967a3..59b69de0d9 100644 --- a/cpukit/posix/src/mutexattrgettype.c +++ b/cpukit/posix/src/mutexattrgettype.c @@ -29,7 +29,13 @@ int pthread_mutexattr_gettype( int *type ) { - if ( !attr || !attr->is_initialized || !type ) + if ( !attr ) + return EINVAL; + + if ( !attr->is_initialized ) + return EINVAL; + + if ( !type ) return EINVAL; *type = attr->type; |